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 support query elevation data by points, line and polygon based on SRTM and Ned13 elevation source data. And it return 3 types data:

  • For point - Create a buffer and aggregate all points within buffer to create average for the elevation of the point.
  • For line - 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 query the elevation data of the point.
  • For polygon - 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 the ThinkGeo Cloud RESTful APIs can be tested online 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

  • 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.1550250317.txt.gz · Last modified: 2019/02/15 17:05 by benbai