ThinkGeo Cloud
ThinkGeo UI Controls
ThinkGeo Open Source
Help and Support
External Resources
ThinkGeo Cloud
ThinkGeo UI Controls
ThinkGeo Open Source
Help and Support
External Resources
This is an old revision of the document!
ThinkGeo Cloud Elevation provides the way to get elevation data from ThinkGeo's Cloud Server. Check out Get Elevation Along Path for a quick look.
The Elevation SDK supports querying of elevation data by points, line and polygon based on SRTM and Ned13 elevation source data. It returns 3 types of data:
* Try it Online: All of the ThinkGeo Cloud RESTful APIs can be tested online by following the instructions below:
ThinkGeo Cloud Elevation provides the following RESTful APIs:
<!-- Get the elevation of a point -->
HTTP GET
https://cloud.thinkgeo.com/api/v1/elevation/{pointY},{pointX}
Parameters
<!-- Get the elevation of a point -->
HTTP GET
https://cloud.thinkgeo.com/api/v1/elevation/{pointY},{pointX}
Parameters
<!-- Get the elevation of points along a line -->
HTTP GET
https://cloud.thinkgeo.com/api/v1/elevation/line
Parameters
<!-- Get the elevation of a matrix of points within an area. -->
HTTP GET
https://cloud.thinkgeo.com/api/v1/elevation/area
Parameters
<!-- Get reverse geocoding for points -->
HTTP POST
https://cloud.thinkgeo.com/api/v1/location/reverse-geocode/multi
Parameters
/* POST parameters, if a parameter specified in both POST and GET, the value from POST parameter will be applied. */ [ { "coord": "string", // The coordinates of the point. The format is: y,x. "srid": int, // The SRID (coordinate system) of the input feature. Defaults to 4326. "proj4String": "string", // The Proj4 (coordinate system) of the input feature. "elevationUnit": "string", // The unit of measure in which the elevation result is expressed. Defaults to "Feet". } ]
<!-- Get the grade (slope) of a line, optionally split into segments -->
HTTP GET
https://cloud.thinkgeo.com/api/v1/elevation/grade/line
Parameters
A .Net SDK ThinkGeo Cloud Client is provided to consume the ThinkGeo Cloud Service as well. It's available on NuGet, here is the complete API List.
Sample Code:
ElevationClient elevationClient = new ElevationClient(clientId, clientSecret); elevationClient.BaseUris.Add(new Uri(GisServerUri)); var response = elevationClient.GetElevationOfLineAsync(line, 3857, numberOfSegments: pointNumber, elevationUnit: DistanceUnit.Meter);
Native SDKs for Python, iOS and Android are coming soon.
Online Sample:
Desktop Sample: