Table of Contents

ThinkGeo Cloud Elevation

ThinkGeo Cloud Elevation provides a way to get elevation data from the ThinkGeo Cloud service. Check out Get Elevation Along Path for a quick look.

The Elevation service supports querying of elevation data by points, lines and polygons and uses SRTM and NED13 as its underlying elevation source data. It accepts three basic types of input:

RESTful APIs

* 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 Elevation of Point

Get the elevation at a single coordinate.

HTTP GET
https://cloud.thinkgeo.com/api/v1/elevation/{pointY},{pointX}

URL Parameters

Visit GetElevationOfPoint and click “Try It Out” to test this API online.

Get Elevation of Points (Batch Request)

Get the elevation for each point in a batch of points (up to 1,000 points maximum per batch).

HTTP POST
https://cloud.thinkgeo.com/api/v1/elevation/point/multi

POST Body (Content-Type: application/json)

[
  {
    "coord": "string", // The coordinates of the point. The format is: y,x.
    "elevationUnit": "string" // Optional. The measurement unit in which the elevation result is expressed. Defaults to "Feet".
    "srid": int, // Optional. The SRID of the input feature's coordinate system. Defaults to 4326.
    "proj4String": "string", // Optional. The Proj4 string of the input feature's coordinate system.
  }
]

Each item in the batch can locally override a parameter specified on the request URL (for instance, if you have a batch of points that use multiple coordinate systems).

URL Parameters

Visit GetElevationsOfPointsBatch and click “Try It Out” to explore this API online.

Get Elevation of Line

Get the elevation of each sample point along a line.

HTTP GET
https://cloud.thinkgeo.com/api/v1/elevation/line

URL Parameters

Visit GetElevationOfLine and click “Try It Out” to explore this API online.

Get Elevation of Area

Get the elevation of a matrix of points within an area.

HTTP GET
https://cloud.thinkgeo.com/api/v1/elevation/area

URL Parameters

Visit GetElevationOfArea and click “Try It Out” to explore this API online.

Get Grade of Line

Get the grade (slope) in degrees of a line, optionally split into segments.

HTTP GET
https://cloud.thinkgeo.com/api/v1/elevation/grade/line

URL Parameters

Visit GetGradeOfLine and click “Try It Out” to explore this API online.

Consume From Client Side SDKs

Our .NET SDK ThinkGeo Cloud Client makes it easy to consume all of the ThinkGeo Cloud services in your applications. It's available on NuGet. IntelliSense hints will help you get started, and you can also refer to the ThinkGeo Cloud Client API list for details.

At the NuGet Package Manager terminal, you can install this package by running the command: Install-Package ThinkGeo.Cloud.Client -Version VERSION_TO_BE_INSTALLED. You can also check out ThinkGeo on GitHub for samples utilizing the ThinkGeo Cloud Client.

Sample Code

This snippet uses the .NET ThinkGeo Cloud Client SDK to get the elevation of a line by dividing it into 15 segments and taking samples at each segment point. The response is expressed in meters.

using ThinkGeo.Cloud;
using ThinkGeo.MapSuite.Shapes;
 
LineShape line = new LineShape("LINESTRING(-12359831.643855993 4167388.583607652,-12358190.636404995 4167794.6553204176)");
ElevationClient elevationClient = new ElevationClient("Your Client ID", "Your Client Secret");
elevationClient.BaseUris.Add(new Uri("https://cloud.thinkgeo.com"));
var response = elevationClient.GetElevationOfLine(line, 3857, numberOfSegments: 15, elevationUnit: DistanceUnit.Meter);

Native SDKs for Python, iOS and Android are coming soon.

Samples

Online Sample:

Desktop Sample:

Web Sample:

Coming soon

Mobile Sample:

Coming soon