Skip to content

ElevationCloudClient

Namespace: ThinkGeo.Core

A class provides the methods to access the Elevation APIs.

public class ElevationCloudClient : CloudClient, System.IDisposable

Inheritance Object → CloudClient → ElevationCloudClient
Implements IDisposable

Remarks:

A class provides the methods to access the Elevation APIs.

Properties

TimeoutInSeconds

The request timeout, default 100 seconds

public int TimeoutInSeconds { get; set; }

Property Value

Int32

WebProxy

The proxy used for requesting a Web Response.

public IWebProxy WebProxy { get; set; }

Property Value

IWebProxy

ClientId

A GIS Server NativeConfidential client ID.

public string ClientId { get; set; }

Property Value

String

ClientSecret

A GIS Server NativeConfidential client secret.

public string ClientSecret { get; set; }

Property Value

String

BaseUris

Candidate Gis Server Uris. This collection must have one uri at least before sending any request.

public Collection<Uri> BaseUris { get; }

Property Value

Collection<Uri>

Constructors

ElevationCloudClient()

Initilizes an instance. You need apply client Id and secret by properties.

public ElevationCloudClient()

ElevationCloudClient(String, String)

Initializes an instance with ClientID and ClientSecret. It will send a request to GIS Server to gain the token which will be added to the Header for all the requests.

public ElevationCloudClient(string clientId, string clientSecret)

Parameters

clientId String
The ClientId for the auth.

clientSecret String
The ClientSecret for the auth.

Exceptions

ArgumentNullException
Thrown when the or is null.

Methods

GetElevationOfPointInDecimalDegree(Double, Double, DistanceUnit)

Get the elevation of a point.

public double GetElevationOfPointInDecimalDegree(double latitude, double longitude, DistanceUnit elevationUnit)

Parameters

latitude Double
The latitude of the point.

longitude Double
The longitude of the point.

elevationUnit DistanceUnit
The unit of measure in which the elevation result is expressed. Defaults to "Feet".

Returns

Double
Returns the elevation for the point

GetElevationOfPoint(Double, Double, Int32, DistanceUnit)

Get the elevation of a point.

public double GetElevationOfPoint(double x, double y, int pointProjectionInSrid, DistanceUnit elevationUnit)

Parameters

x Double
The X coordinate of the point.

y Double
The Y coordinate of the point.

pointProjectionInSrid Int32
The SRID of the point

elevationUnit DistanceUnit
The unit of measure in which the elevation result is expressed. Defaults to "Feet".

Returns

Double
Returns the elevation for the point

GetElevationOfPoint(Double, Double, String, DistanceUnit)

Get the elevation of a point.

public double GetElevationOfPoint(double x, double y, string pointProjectionInProj4String, DistanceUnit elevationUnit)

Parameters

x Double
The X coordinate of the point.

y Double
The Y coordinate of the point.

pointProjectionInProj4String String
The proj4string of the point.

elevationUnit DistanceUnit
The unit of measure in which the elevation result is expressed. Defaults to "Feet".

Returns

Double
Returns the elevation for the point

GetElevationOfPointInDecimalDegreeAsync(Double, Double, DistanceUnit)

Get the elevation of a point.

public Task<double> GetElevationOfPointInDecimalDegreeAsync(double latitude, double longitude, DistanceUnit elevationUnit)

Parameters

latitude Double
The latitude of the point.

longitude Double
The longitude of the point.

elevationUnit DistanceUnit
The unit of measure in which the elevation result is expressed. Defaults to "Feet".

Returns

Task<Double>
Returns the elevation for the point

GetElevationOfPointAsync(Double, Double, Int32, DistanceUnit)

Get the elevation of a point.

public Task<double> GetElevationOfPointAsync(double x, double y, int pointProjectionInSrid, DistanceUnit elevationUnit)

Parameters

x Double
The X coordinate of the point.

y Double
The Y coordinate of the point.

pointProjectionInSrid Int32
The SRID of the point.

elevationUnit DistanceUnit
The unit of measure in which the elevation result is expressed. Defaults to "Feet".

Returns

Task<Double>
Returns the elevation for the point

GetElevationOfPointAsync(Double, Double, String, DistanceUnit)

Get the elevation of a point.

public Task<double> GetElevationOfPointAsync(double x, double y, string pointProjectionInProj4String, DistanceUnit elevationUnit)

Parameters

x Double
The Y coordinate of the point.

y Double
The X coordinate of the point.

pointProjectionInProj4String String
The proj4string of the point.

elevationUnit DistanceUnit
The unit of measure in which the elevation result is expressed. Defaults to "Feet".

Returns

Task<Double>
Returns the elevation for the point

GetElevationOfPointsInDecimalDegree(IEnumerable<PointShape>, DistanceUnit)

Get the elevation of multi points.

public CloudElevationResult GetElevationOfPointsInDecimalDegree(IEnumerable<PointShape> points, DistanceUnit elevationUnit)

Parameters

points IEnumerable<PointShape>
The points to get the elevation.

elevationUnit DistanceUnit
The unit of measure in which the elevation result is expressed. Defaults to "Feet".

Returns

CloudElevationResult
A ElevationResult with collection of the elevation data.

GetElevationOfPoints(IEnumerable<PointShape>, Int32, DistanceUnit)

Get the elevation of multi points.

public CloudElevationResult GetElevationOfPoints(IEnumerable<PointShape> points, int pointsProjectionInSrid, DistanceUnit elevationUnit)

Parameters

points IEnumerable<PointShape>
The points to get the elevation.

pointsProjectionInSrid Int32
The SRID (coordinate system) of the input line.

elevationUnit DistanceUnit
The unit of measure in which the elevation result is expressed. Defaults to "Feet".

Returns

CloudElevationResult
A ElevationResult with collection of the elevation data.

GetElevationOfPoints(IEnumerable<PointShape>, String, DistanceUnit)

Get the elevation of multi points.

public CloudElevationResult GetElevationOfPoints(IEnumerable<PointShape> points, string pointsProjectionInProj4String, DistanceUnit elevationUnit)

Parameters

points IEnumerable<PointShape>
The points to get the elevation.

pointsProjectionInProj4String String
The proj4string of the point.

elevationUnit DistanceUnit
The unit of measure in which the elevation result is expressed. Defaults to "Feet".

Returns

CloudElevationResult
A ElevationResult with collection of the elevation data.

GetElevationOfPointsInDecimalDegreeAsync(IEnumerable<PointShape>, DistanceUnit)

Get the elevation of multi points.

public Task<CloudElevationResult> GetElevationOfPointsInDecimalDegreeAsync(IEnumerable<PointShape> points, DistanceUnit elevationUnit)

Parameters

points IEnumerable<PointShape>
The points to get the elevation.

elevationUnit DistanceUnit
The unit of measure in which the elevation result is expressed. Defaults to "Feet".

Returns

Task<CloudElevationResult>
A ElevationResult with collection of the elevation data.

GetElevationOfPointsAsync(IEnumerable<PointShape>, Int32, DistanceUnit)

Get the elevation of multi points.

public Task<CloudElevationResult> GetElevationOfPointsAsync(IEnumerable<PointShape> points, int pointsProjectionInSrid, DistanceUnit elevationUnit)

Parameters

points IEnumerable<PointShape>
The points to get the elevation.

pointsProjectionInSrid Int32
The SRID (coordinate system) of the input line.

elevationUnit DistanceUnit
The unit of measure in which the elevation result is expressed. Defaults to "Feet".

Returns

Task<CloudElevationResult>
A ElevationResult with collection of the elevation data.

GetElevationOfPointsAsync(IEnumerable<PointShape>, String, DistanceUnit)

Get the elevation of multi points.

public Task<CloudElevationResult> GetElevationOfPointsAsync(IEnumerable<PointShape> points, string pointsProjectionInProj4String, DistanceUnit elevationUnit)

Parameters

points IEnumerable<PointShape>
The points to get the elevation.

pointsProjectionInProj4String String
The proj4string of the point.

elevationUnit DistanceUnit
The unit of measure in which the elevation result is expressed. Defaults to "Feet".

Returns

Task<CloudElevationResult>
A ElevationResult with collection of the elevation data.

GetElevationOfLineInDecimalDegree(LineBaseShape, Int32, DistanceUnit)

Get the elevation of points along a line.

public CloudElevationResult GetElevationOfLineInDecimalDegree(LineBaseShape line, int numberOfSegments, DistanceUnit elevationUnit)

Parameters

line LineBaseShape
The line to get the elevation.

numberOfSegments Int32
Splits the requested line into this many segments, then calculates elevation of each point joining the segments.

elevationUnit DistanceUnit
The unit of measure in which the elevation result is expressed. Defaults to "Feet".

Returns

CloudElevationResult
A ElevationResult with collection of the elevation data.

GetElevationOfLine(LineBaseShape, Int32, Int32, DistanceUnit)

Get the elevation of points along a line.

public CloudElevationResult GetElevationOfLine(LineBaseShape line, int lineProjectionInSrid, int numberOfSegments, DistanceUnit elevationUnit)

Parameters

line LineBaseShape
The line to get the elevation.

lineProjectionInSrid Int32
The SRID (coordinate system) of the input line.

numberOfSegments Int32
Splits the requested line into this many segments, then calculates elevation of each point joining the segments.

elevationUnit DistanceUnit
The unit of measure in which the elevation result is expressed. Defaults to "Feet".

Returns

CloudElevationResult
A ElevationResult with collection of the elevation data.

GetElevationOfLine(LineBaseShape, String, Int32, DistanceUnit)

Get the elevation of points along a line.

public CloudElevationResult GetElevationOfLine(LineBaseShape line, string lineProjectionInProj4String, int numberOfSegments, DistanceUnit elevationUnit)

Parameters

line LineBaseShape
The line to get the elevation.

lineProjectionInProj4String String
The proj4string (coordinate system) of the input line.

numberOfSegments Int32
Splits the requested line into this many segments, then calculates elevation of each point joining the segments.

elevationUnit DistanceUnit
The unit of measure in which the elevation result is expressed. Defaults to "Feet".

Returns

CloudElevationResult
A ElevationResult with collection of the elevation data.

GetElevationOfLineInDecimalDegree(LineBaseShape, Double, DistanceUnit, DistanceUnit)

Get the elevation of points along a line.

public CloudElevationResult GetElevationOfLineInDecimalDegree(LineBaseShape line, double intervalDistance, DistanceUnit intervalDistanceUnit, DistanceUnit elevationUnit)

Parameters

line LineBaseShape
The line to get the elevation.

intervalDistance Double
Splits the requested line into intervals of this length. The unit of measure for this distance is specified by the IntervalDistanceUnit parameter.

intervalDistanceUnit DistanceUnit
The unit of measure in which the IntervalDistance is expressed.

elevationUnit DistanceUnit
The unit of measure in which the elevation result is expressed. Defaults to "Feet".

Returns

CloudElevationResult
A ElevationResult with collection of the elevation data.

GetElevationOfLine(LineBaseShape, Int32, Double, DistanceUnit, DistanceUnit)

Get the elevation of points along a line.

public CloudElevationResult GetElevationOfLine(LineBaseShape line, int lineProjectionInSrid, double intervalDistance, DistanceUnit intervalDistanceUnit, DistanceUnit elevationUnit)

Parameters

line LineBaseShape
The line to get the elevation.

lineProjectionInSrid Int32
The SRID (coordinate system) of the input line.

intervalDistance Double
Splits the requested line into intervals of this length. The unit of measure for this distance is specified by the IntervalDistanceUnit parameter.

intervalDistanceUnit DistanceUnit
The unit of measure in which the IntervalDistance is expressed.

elevationUnit DistanceUnit
The unit of measure in which the elevation result is expressed. Defaults to "Feet".

Returns

CloudElevationResult
A ElevationResult with collection of the elevation data.

GetElevationOfLine(LineBaseShape, String, Double, DistanceUnit, DistanceUnit)

Get the elevation of points along a line.

public CloudElevationResult GetElevationOfLine(LineBaseShape line, string lineProjectionInProj4String, double intervalDistance, DistanceUnit intervalDistanceUnit, DistanceUnit elevationUnit)

Parameters

line LineBaseShape
The line to get the elevation.

lineProjectionInProj4String String
The proj4string (coordinate system) of the input line.

intervalDistance Double
Splits the requested line into intervals of this length. The unit of measure for this distance is specified by the IntervalDistanceUnit parameter.

intervalDistanceUnit DistanceUnit
The unit of measure in which the IntervalDistance is expressed.

elevationUnit DistanceUnit
The unit of measure in which the elevation result is expressed. Defaults to "Feet".

Returns

CloudElevationResult
A ElevationResult with collection of the elevation data.

GetElevationOfLineInDecimalDegreeAsync(LineBaseShape, Int32, DistanceUnit)

Get the elevation of points along a line.

public Task<CloudElevationResult> GetElevationOfLineInDecimalDegreeAsync(LineBaseShape line, int numberOfSegments, DistanceUnit elevationUnit)

Parameters

line LineBaseShape
The line to get the elevation.

numberOfSegments Int32
Splits the requested line into this many segments, then calculates elevation of each point joining the segments.

elevationUnit DistanceUnit
The unit of measure in which the elevation result is expressed. Defaults to "Feet".

Returns

Task<CloudElevationResult>
A ElevationResult with collection of the elevation data.

GetElevationOfLineAsync(LineBaseShape, Int32, Int32, DistanceUnit)

Get the elevation of points along a line.

public Task<CloudElevationResult> GetElevationOfLineAsync(LineBaseShape line, int lineProjectionInSrid, int numberOfSegments, DistanceUnit elevationUnit)

Parameters

line LineBaseShape
The line to get the elevation.

lineProjectionInSrid Int32
The SRID (coordinate system) of the input line.

numberOfSegments Int32
Splits the requested line into this many segments, then calculates elevation of each point joining the segments.

elevationUnit DistanceUnit
The unit of measure in which the elevation result is expressed. Defaults to "Feet".

Returns

Task<CloudElevationResult>
A ElevationResult with collection of the elevation data.

GetElevationOfLineAsync(LineBaseShape, String, Int32, DistanceUnit)

Get the elevation of points along a line.

public Task<CloudElevationResult> GetElevationOfLineAsync(LineBaseShape line, string lineProjectionInProj4String, int numberOfSegments, DistanceUnit elevationUnit)

Parameters

line LineBaseShape
The line to get the elevation.

lineProjectionInProj4String String
The proj4string (coordinate system) of the input line.

numberOfSegments Int32
Splits the requested line into this many segments, then calculates elevation of each point joining the segments.

elevationUnit DistanceUnit
The unit of measure in which the elevation result is expressed. Defaults to "Feet".

Returns

Task<CloudElevationResult>
A ElevationResult with collection of the elevation data.

GetElevationOfLineInDecimalDegreeAsync(LineBaseShape, Double, DistanceUnit, DistanceUnit)

Get the elevation of points along a line.

public Task<CloudElevationResult> GetElevationOfLineInDecimalDegreeAsync(LineBaseShape line, double intervalDistance, DistanceUnit intervalDistanceUnit, DistanceUnit elevationUnit)

Parameters

line LineBaseShape
The line to get the elevation.

intervalDistance Double
Splits the requested line into intervals of this length. The unit of measure for this distance is specified by the IntervalDistanceUnit parameter.

intervalDistanceUnit DistanceUnit
The unit of measure in which the IntervalDistance is expressed.

elevationUnit DistanceUnit
The unit of measure in which the elevation result is expressed. Defaults to "Feet".

Returns

Task<CloudElevationResult>
A ElevationResult with collection of the elevation data.

GetElevationOfLineAsync(LineBaseShape, Int32, Double, DistanceUnit, DistanceUnit)

Get the elevation of points along a line.

public Task<CloudElevationResult> GetElevationOfLineAsync(LineBaseShape line, int lineProjectionInSrid, double intervalDistance, DistanceUnit intervalDistanceUnit, DistanceUnit elevationUnit)

Parameters

line LineBaseShape
The line to get the elevation.

lineProjectionInSrid Int32
The SRID (coordinate system) of the input line.

intervalDistance Double
Splits the requested line into intervals of this length. The unit of measure for this distance is specified by the IntervalDistanceUnit parameter.

intervalDistanceUnit DistanceUnit
The unit of measure in which the IntervalDistance is expressed.

elevationUnit DistanceUnit
The unit of measure in which the elevation result is expressed. Defaults to "Feet".

Returns

Task<CloudElevationResult>
A ElevationResult with collection of the elevation data.

GetElevationOfLineAsync(LineBaseShape, String, Double, DistanceUnit, DistanceUnit)

Get the elevation of points along a line.

public Task<CloudElevationResult> GetElevationOfLineAsync(LineBaseShape line, string lineProjectionInProj4String, double intervalDistance, DistanceUnit intervalDistanceUnit, DistanceUnit elevationUnit)

Parameters

line LineBaseShape
The line to get the elevation.

lineProjectionInProj4String String
The proj4string (coordinate system) of the input line.

intervalDistance Double
Splits the requested line into intervals of this length. The unit of measure for this distance is specified by the IntervalDistanceUnit parameter.

intervalDistanceUnit DistanceUnit
The unit of measure in which the IntervalDistance is expressed.

elevationUnit DistanceUnit
The unit of measure in which the elevation result is expressed. Defaults to "Feet".

Returns

Task<CloudElevationResult>
A ElevationResult with collection of the elevation data.

GetGradeOfLineInDecimalDegree(LineShape, Int32, DistanceUnit)

Get the grade (slope) of a line.

public CloudGradeResult GetGradeOfLineInDecimalDegree(LineShape line, int numberOfSegments, DistanceUnit elevationUnit)

Parameters

line LineShape
The line that nedd to get the grade.

numberOfSegments Int32
Splits the requested line into this many segments, then calculates elevation of each point joining the segments.

elevationUnit DistanceUnit
The unit of measure in which the elevation result is expressed. Defaults to "Feet".

Returns

CloudGradeResult
A collection of the elevation grade data.

GetGradeOfLine(LineShape, Int32, Int32, DistanceUnit)

Get the grade (slope) of a line.

public CloudGradeResult GetGradeOfLine(LineShape line, int lineProjectionInSrid, int numberOfSegments, DistanceUnit elevationUnit)

Parameters

line LineShape
The line that nedd to get the grade.

lineProjectionInSrid Int32
The SRID (coordinate system) of the input line.

numberOfSegments Int32
Splits the requested line into this many segments, then calculates elevation of each point joining the segments.

elevationUnit DistanceUnit
The unit of measure in which the elevation result is expressed. Defaults to "Feet".

Returns

CloudGradeResult
A collection of the elevation grade data.

GetGradeOfLine(LineShape, String, Int32, DistanceUnit)

Get the grade (slope) of a line.

public CloudGradeResult GetGradeOfLine(LineShape line, string lineProjectionInProj4String, int numberOfSegments, DistanceUnit elevationUnit)

Parameters

line LineShape
The line that nedd to get the grade.

lineProjectionInProj4String String
The proj4string (coordinate system) of the input line.

numberOfSegments Int32
Splits the requested line into this many segments, then calculates elevation of each point joining the segments.

elevationUnit DistanceUnit
The unit of measure in which the elevation result is expressed. Defaults to "Feet".

Returns

CloudGradeResult
A collection of the elevation grade data.

GetGradeOfLineInDecimalDegree(LineShape, Double, DistanceUnit, DistanceUnit)

Get the grade (slope) of a line.

public CloudGradeResult GetGradeOfLineInDecimalDegree(LineShape line, double intervalDistance, DistanceUnit intervalDistanceUnit, DistanceUnit elevationUnit)

Parameters

line LineShape
The line that nedd to get the grade.

intervalDistance Double
Splits the requested line into intervals of this length. The unit of measure for this distance is specified by the IntervalDistanceUnit parameter.

intervalDistanceUnit DistanceUnit
The unit of measure in which the IntervalDistance is expressed.

elevationUnit DistanceUnit
The unit of measure in which the elevation result is expressed. Defaults to "Feet".

Returns

CloudGradeResult
A collection of the elevation grade data.

GetGradeOfLine(LineShape, Int32, Double, DistanceUnit, DistanceUnit)

Get the grade (slope) of a line.

public CloudGradeResult GetGradeOfLine(LineShape line, int lineProjectionInSrid, double intervalDistance, DistanceUnit intervalDistanceUnit, DistanceUnit elevationUnit)

Parameters

line LineShape
The line that nedd to get the grade.

lineProjectionInSrid Int32
The SRID (coordinate system) of the input line.

intervalDistance Double
Splits the requested line into intervals of this length. The unit of measure for this distance is specified by the IntervalDistanceUnit parameter.

intervalDistanceUnit DistanceUnit
The unit of measure in which the IntervalDistance is expressed.

elevationUnit DistanceUnit
The unit of measure in which the elevation result is expressed. Defaults to "Feet".

Returns

CloudGradeResult
A collection of the elevation grade data.

GetGradeOfLine(LineShape, String, Double, DistanceUnit, DistanceUnit)

Get the grade (slope) of a line.

public CloudGradeResult GetGradeOfLine(LineShape line, string lineProjectionInProj4String, double intervalDistance, DistanceUnit intervalDistanceUnit, DistanceUnit elevationUnit)

Parameters

line LineShape
The line that nedd to get the grade.

lineProjectionInProj4String String
The proj4string (coordinate system) of the input line.

intervalDistance Double
Splits the requested line into intervals of this length. The unit of measure for this distance is specified by the IntervalDistanceUnit parameter.

intervalDistanceUnit DistanceUnit
The unit of measure in which the IntervalDistance is expressed.

elevationUnit DistanceUnit
The unit of measure in which the elevation result is expressed. Defaults to "Feet".

Returns

CloudGradeResult
A collection of the elevation grade data.

GetGradeOfLineInDecimalDegreeAsync(LineShape, Int32, DistanceUnit)

Get the grade (slope) of a line.

public Task<CloudGradeResult> GetGradeOfLineInDecimalDegreeAsync(LineShape line, int numberOfSegments, DistanceUnit elevationUnit)

Parameters

line LineShape
The line that nedd to get the grade.

numberOfSegments Int32
Splits the requested line into this many segments, then calculates elevation of each point joining the segments.

elevationUnit DistanceUnit
The unit of measure in which the elevation result is expressed. Defaults to "Feet".

Returns

Task<CloudGradeResult>
A collection of the elevation grade data.

GetGradeOfLineAsync(LineShape, Int32, Double, DistanceUnit, DistanceUnit)

Get the grade (slope) of a line.

public Task<CloudGradeResult> GetGradeOfLineAsync(LineShape line, int lineProjectionInSrid, double intervalDistance, DistanceUnit intervalDistanceUnit, DistanceUnit elevationUnit)

Parameters

line LineShape
The line that nedd to get the grade.

lineProjectionInSrid Int32
The SRID (coordinate system) of the input line.

intervalDistance Double
Splits the requested line into intervals of this length. The unit of measure for this distance is specified by the IntervalDistanceUnit parameter.

intervalDistanceUnit DistanceUnit
The unit of measure in which the IntervalDistance is expressed.

elevationUnit DistanceUnit
The unit of measure in which the elevation result is expressed. Defaults to "Feet".

Returns

Task<CloudGradeResult>
A collection of the elevation grade data.

GetGradeOfLineAsync(LineShape, String, Double, DistanceUnit, DistanceUnit)

Get the grade (slope) of a line.

public Task<CloudGradeResult> GetGradeOfLineAsync(LineShape line, string lineProjectionInProj4String, double intervalDistance, DistanceUnit intervalDistanceUnit, DistanceUnit elevationUnit)

Parameters

line LineShape
The line that nedd to get the grade.

lineProjectionInProj4String String
The proj4string (coordinate system) of the input line.

intervalDistance Double
Splits the requested line into intervals of this length. The unit of measure for this distance is specified by the IntervalDistanceUnit parameter.

intervalDistanceUnit DistanceUnit
The unit of measure in which the IntervalDistance is expressed.

elevationUnit DistanceUnit
The unit of measure in which the elevation result is expressed. Defaults to "Feet".

Returns

Task<CloudGradeResult>
A collection of the elevation grade data.

GetGradeOfLineInDecimalDegreeAsync(LineShape, Double, DistanceUnit, DistanceUnit)

Get the grade (slope) of a line.

public Task<CloudGradeResult> GetGradeOfLineInDecimalDegreeAsync(LineShape line, double intervalDistance, DistanceUnit intervalDistanceUnit, DistanceUnit elevationUnit)

Parameters

line LineShape
The line that nedd to get the grade.

intervalDistance Double
Splits the requested line into intervals of this length. The unit of measure for this distance is specified by the IntervalDistanceUnit parameter.

intervalDistanceUnit DistanceUnit
The unit of measure in which the IntervalDistance is expressed.

elevationUnit DistanceUnit
The unit of measure in which the elevation result is expressed. Defaults to "Feet".

Returns

Task<CloudGradeResult>
A collection of the elevation grade data.

GetGradeOfLineAsync(LineShape, Int32, Int32, DistanceUnit)

Get the grade (slope) of a line.

public Task<CloudGradeResult> GetGradeOfLineAsync(LineShape line, int lineProjectionInSrid, int numberOfSegments, DistanceUnit elevationUnit)

Parameters

line LineShape
The line that nedd to get the grade.

lineProjectionInSrid Int32
The SRID (coordinate system) of the input line.

numberOfSegments Int32
Splits the requested line into this many segments, then calculates elevation of each point joining the segments.

elevationUnit DistanceUnit
The unit of measure in which the elevation result is expressed. Defaults to "Feet".

Returns

Task<CloudGradeResult>
A collection of the elevation grade data.

GetGradeOfLineAsync(LineShape, String, Int32, DistanceUnit)

Get the grade (slope) of a line.

public Task<CloudGradeResult> GetGradeOfLineAsync(LineShape line, string lineProjectionInProj4String, int numberOfSegments, DistanceUnit elevationUnit)

Parameters

line LineShape
The line that nedd to get the grade.

lineProjectionInProj4String String
The proj4string (coordinate system) of the input line.

numberOfSegments Int32
Splits the requested line into this many segments, then calculates elevation of each point joining the segments.

elevationUnit DistanceUnit
The unit of measure in which the elevation result is expressed. Defaults to "Feet".

Returns

Task<CloudGradeResult>
A collection of the elevation grade data.

GetElevationOfAreaInDecimalDegree(AreaBaseShape, Double, DistanceUnit, DistanceUnit)

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

public CloudElevationResult GetElevationOfAreaInDecimalDegree(AreaBaseShape area, double intervalDistance, DistanceUnit intervalDistanceUnit, DistanceUnit elevationUnit)

Parameters

area AreaBaseShape
The area of a polygon shape to get the elevation.

intervalDistance Double
The distance between every two points in the area matrix. Elevation of each point will be calculated and returned. The unit of measure for this distance is specified by the IntervalDistanceUnit parameter.

intervalDistanceUnit DistanceUnit
The unit of measure in which the IntervalDistance is expressed.

elevationUnit DistanceUnit
The unit of measure in which the elevation result is expressed. Defaults to "Feet".

Returns

CloudElevationResult
A ElevationResult with collection of the elevation data.

GetElevationOfArea(AreaBaseShape, Int32, Double, DistanceUnit, DistanceUnit)

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

public CloudElevationResult GetElevationOfArea(AreaBaseShape area, int areaProjectionInSrid, double intervalDistance, DistanceUnit intervalDistanceUnit, DistanceUnit elevationUnit)

Parameters

area AreaBaseShape
The area of a polygon shape to get the elevation.

areaProjectionInSrid Int32
The SRID (coordinate system) of the input line.

intervalDistance Double
The distance between every two points in the area matrix. Elevation of each point will be calculated and returned. The unit of measure for this distance is specified by the IntervalDistanceUnit parameter.

intervalDistanceUnit DistanceUnit
The unit of measure in which the IntervalDistance is expressed.

elevationUnit DistanceUnit
The unit of measure in which the elevation result is expressed. Defaults to "Feet".

Returns

CloudElevationResult
A ElevationResult with collection of the elevation data.

GetElevationOfArea(AreaBaseShape, String, Double, DistanceUnit, DistanceUnit)

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

public CloudElevationResult GetElevationOfArea(AreaBaseShape area, string areaProjectionInProj4String, double intervalDistance, DistanceUnit intervalDistanceUnit, DistanceUnit elevationUnit)

Parameters

area AreaBaseShape
The area of a polygon shape to get the elevation.

areaProjectionInProj4String String
The proj4string (coordinate system) of the input line.

intervalDistance Double
The distance between every two points in the area matrix. Elevation of each point will be calculated and returned. The unit of measure for this distance is specified by the IntervalDistanceUnit parameter.

intervalDistanceUnit DistanceUnit
The unit of measure in which the IntervalDistance is expressed.

elevationUnit DistanceUnit
The unit of measure in which the elevation result is expressed. Defaults to "Feet".

Returns

CloudElevationResult
A ElevationResult with collection of the elevation data.

GetElevationOfAreaInDecimalDegreeAsync(AreaBaseShape, Double, DistanceUnit, DistanceUnit)

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

public Task<CloudElevationResult> GetElevationOfAreaInDecimalDegreeAsync(AreaBaseShape area, double intervalDistance, DistanceUnit intervalDistanceUnit, DistanceUnit elevationUnit)

Parameters

area AreaBaseShape
The area of a polygon shape to get the elevation.

intervalDistance Double
The distance between every two points in the area matrix. Elevation of each point will be calculated and returned. The unit of measure for this distance is specified by the IntervalDistanceUnit parameter.

intervalDistanceUnit DistanceUnit
The unit of measure in which the IntervalDistance is expressed.

elevationUnit DistanceUnit
The unit of measure in which the elevation result is expressed. Defaults to "Feet".

Returns

Task<CloudElevationResult>
A ElevationResult with collection of the elevation data.

GetElevationOfAreaAsync(AreaBaseShape, Int32, Double, DistanceUnit, DistanceUnit)

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

public Task<CloudElevationResult> GetElevationOfAreaAsync(AreaBaseShape area, int areaProjectionInSrid, double intervalDistance, DistanceUnit intervalDistanceUnit, DistanceUnit elevationUnit)

Parameters

area AreaBaseShape
The area of a polygon shape to get the elevation.

areaProjectionInSrid Int32
The SRID (coordinate system) of the input line.

intervalDistance Double
The distance between every two points in the area matrix. Elevation of each point will be calculated and returned. The unit of measure for this distance is specified by the IntervalDistanceUnit parameter.

intervalDistanceUnit DistanceUnit
The unit of measure in which the IntervalDistance is expressed.

elevationUnit DistanceUnit
The unit of measure in which the elevation result is expressed. Defaults to "Feet".

Returns

Task<CloudElevationResult>
A ElevationResult with collection of the elevation data.

GetElevationOfAreaAsync(AreaBaseShape, String, Double, DistanceUnit, DistanceUnit)

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

public Task<CloudElevationResult> GetElevationOfAreaAsync(AreaBaseShape area, string areaProjectionInProj4String, double intervalDistance, DistanceUnit intervalDistanceUnit, DistanceUnit elevationUnit)

Parameters

area AreaBaseShape
The area of a polygon shape to get the elevation.

areaProjectionInProj4String String
The proj4string (coordinate system) of the input line.

intervalDistance Double
The distance between every two points in the area matrix. Elevation of each point will be calculated and returned. The unit of measure for this distance is specified by the IntervalDistanceUnit parameter.

intervalDistanceUnit DistanceUnit
The unit of measure in which the IntervalDistance is expressed.

elevationUnit DistanceUnit
The unit of measure in which the elevation result is expressed. Defaults to "Feet".

Returns

Task<CloudElevationResult>
A ElevationResult with collection of the elevation data.

Events

GettingAccessToken

Occurs before getting an AccessToken.

public event EventHandler<GettingAccessTokenEventArgs> GettingAccessToken;

SendingWebRequest

Occurs before sending a web request.

public event EventHandler<SendingWebRequestEventArgs> SendingWebRequest;

SentWebRequest

Occurs after the response of a web request is gotten.

public event EventHandler<SentWebRequestEventArgs> SentWebRequest;