User Tools

Site Tools


thinkgeo_cloud_elevation

This is an old revision of the document!


ThinkGeo Cloud Elevation

ThinkGeo Cloud Elevation provides the way to get elevation data from ThinkGeo GIS 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:

  • For points - Creates a buffer and aggregates all points within buffer to create averages for the elevation of the point.
  • For lines - There are two ways to get the elevation data of the line. First, get the points on the line by setting the interval distance. The other, is to take the points by setting the number of points to be fetched. Then querying the elevation data of the point.
  • For polygons - By setting the interval distance, clip the polygon to the grids and get all the center of the grids where the polygon is located. Now, determine whether the center points are within the surface or inside the surface (use improved arc-length method).

RESTful APIs

* Try it Online: All of the ThinkGeo Cloud RESTful APIs can be tested online by following the instructions below:

  • Get a ThinkGeo Cloud Client Key. Check out ThinkGeo Cloud Client Keys Guideline to see how to acquire and apply one. All ThinkGeo Cloud evaluations are FREE for 60 days.
  • Authorize with the key at the top of ThinkGeo Cloud APIs and you are then free to play with all the APIs online.

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

  • pointY: Required. The Y coordinate of the point.
  • pointX: Required. The X coordinate of the point.

Consume From Client Side SDKs

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.

Samples

thinkgeo_cloud_elevation.1551721482.txt.gz · Last modified: 2019/03/04 17:44 by sacha