Skip to content

Geospatial data picker via fast Api Rest interface, not only another simple elevation service.

License

Notifications You must be signed in to change notification settings

opengeo-tech/GeoPicker

Repository files navigation

GeoPicker

Geospatial data picker via fast http rest interface

written in Nodejs GDAL and Fastify

Demo

Rest API endpoints

it's work in progress...

method/url description
GET / service status, versions, datasets
POST /:dataset/:prop/ if raster prop is band, for shape prop is field
GET /:dataset/:prop/
GET /pixel/:lat/:lon
GET /:locations
POST /geometry geojson geometry
GET /densify/:locations
POST /densify/geometry add more points in linestring
POST /meta/geometry return direction and length of geometry
GET /within/:lat/:lon check if lat lon inside the default dataset

pick data via http:

$ curl "http://localhost:9090/pixel/42.1/11.1

multiple coordinates at same time

$ curl "http://localhost:9090/pixel/?locs=42.5,12.50|42.6,12.250|42.3,12.43|42.13,12.66"

return json:

{
	"dem":[
		100.0, 76.0, 99.0, 45.0
	]
}

Source