Table of Contents

Class ElevationCloudClient

Namespace
ThinkGeo.Core
Assembly
ThinkGeo.Core.dll

A class provides the methods to access the Elevation APIs.

public class ElevationCloudClient : CloudClient, IDisposable
Inheritance
ElevationCloudClient
Implements
Inherited Members

Remarks

A class provides the methods to access the Elevation APIs.

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 clientId or clientSecret is null.

Methods

GetElevationOfArea(AreaBaseShape, int, 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 = DistanceUnit.Feet)

Parameters

area AreaBaseShape

The area of a polygon shape to get the elevation.

areaProjectionInSrid int

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 = DistanceUnit.Feet)

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.

GetElevationOfAreaAsync(AreaBaseShape, int, 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 = DistanceUnit.Feet)

Parameters

area AreaBaseShape

The area of a polygon shape to get the elevation.

areaProjectionInSrid int

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 = DistanceUnit.Feet)

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.

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 = DistanceUnit.Feet)

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.

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 = DistanceUnit.Feet)

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.

GetElevationOfLine(LineBaseShape, int, double, DistanceUnit, DistanceUnit)

Get the elevation of points along a line.

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

Parameters

line LineBaseShape

The line to get the elevation.

lineProjectionInSrid int

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, int, int, DistanceUnit)

Get the elevation of points along a line.

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

Parameters

line LineBaseShape

The line to get the elevation.

lineProjectionInSrid int

The SRID (coordinate system) of the input line.

numberOfSegments int

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, double, DistanceUnit, DistanceUnit)

Get the elevation of points along a line.

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

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.

GetElevationOfLine(LineBaseShape, string, int, DistanceUnit)

Get the elevation of points along a line.

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

Parameters

line LineBaseShape

The line to get the elevation.

lineProjectionInProj4String string

The proj4string (coordinate system) of the input line.

numberOfSegments int

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.

GetElevationOfLineAsync(LineBaseShape, int, 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 = DistanceUnit.Feet)

Parameters

line LineBaseShape

The line to get the elevation.

lineProjectionInSrid int

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, int, int, DistanceUnit)

Get the elevation of points along a line.

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

Parameters

line LineBaseShape

The line to get the elevation.

lineProjectionInSrid int

The SRID (coordinate system) of the input line.

numberOfSegments int

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, 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 = DistanceUnit.Feet)

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.

GetElevationOfLineAsync(LineBaseShape, string, int, DistanceUnit)

Get the elevation of points along a line.

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

Parameters

line LineBaseShape

The line to get the elevation.

lineProjectionInProj4String string

The proj4string (coordinate system) of the input line.

numberOfSegments int

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.

GetElevationOfLineInDecimalDegree(LineBaseShape, double, DistanceUnit, DistanceUnit)

Get the elevation of points along a line.

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

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.

GetElevationOfLineInDecimalDegree(LineBaseShape, int, DistanceUnit)

Get the elevation of points along a line.

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

Parameters

line LineBaseShape

The line to get the elevation.

numberOfSegments int

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.

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 = DistanceUnit.Feet)

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.

GetElevationOfLineInDecimalDegreeAsync(LineBaseShape, int, DistanceUnit)

Get the elevation of points along a line.

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

Parameters

line LineBaseShape

The line to get the elevation.

numberOfSegments int

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.

GetElevationOfPoint(double, double, int, DistanceUnit)

Get the elevation of a point.

public double GetElevationOfPoint(double x, double y, int pointProjectionInSrid = 4326, DistanceUnit elevationUnit = DistanceUnit.Feet)

Parameters

x double

The X coordinate of the point.

y double

The Y coordinate of the point.

pointProjectionInSrid int

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 = DistanceUnit.Feet)

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

GetElevationOfPointAsync(double, double, int, DistanceUnit)

Get the elevation of a point.

public Task<double> GetElevationOfPointAsync(double x, double y, int pointProjectionInSrid = 4326, DistanceUnit elevationUnit = DistanceUnit.Feet)

Parameters

x double

The X coordinate of the point.

y double

The Y coordinate of the point.

pointProjectionInSrid int

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 = DistanceUnit.Feet)

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

GetElevationOfPointInDecimalDegree(double, double, DistanceUnit)

Get the elevation of a point.

public double GetElevationOfPointInDecimalDegree(double latitude, double longitude, DistanceUnit elevationUnit = DistanceUnit.Feet)

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

GetElevationOfPointInDecimalDegreeAsync(double, double, DistanceUnit)

Get the elevation of a point.

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

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

GetElevationOfPoints(IEnumerable<PointShape>, int, DistanceUnit)

Get the elevation of multi points.

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

Parameters

points IEnumerable<PointShape>

The points to get the elevation.

pointsProjectionInSrid int

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 = DistanceUnit.Feet)

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.

GetElevationOfPointsAsync(IEnumerable<PointShape>, int, DistanceUnit)

Get the elevation of multi points.

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

Parameters

points IEnumerable<PointShape>

The points to get the elevation.

pointsProjectionInSrid int

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 = DistanceUnit.Feet)

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.

GetElevationOfPointsInDecimalDegree(IEnumerable<PointShape>, DistanceUnit)

Get the elevation of multi points.

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

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.

GetElevationOfPointsInDecimalDegreeAsync(IEnumerable<PointShape>, DistanceUnit)

Get the elevation of multi points.

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

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.

GetGradeOfLine(LineShape, int, double, DistanceUnit, DistanceUnit)

Get the grade (slope) of a line.

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

Parameters

line LineShape

The line that nedd to get the grade.

lineProjectionInSrid int

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, int, int, DistanceUnit)

Get the grade (slope) of a line.

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

Parameters

line LineShape

The line that nedd to get the grade.

lineProjectionInSrid int

The SRID (coordinate system) of the input line.

numberOfSegments int

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, double, DistanceUnit, DistanceUnit)

Get the grade (slope) of a line.

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

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.

GetGradeOfLine(LineShape, string, int, DistanceUnit)

Get the grade (slope) of a line.

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

Parameters

line LineShape

The line that nedd to get the grade.

lineProjectionInProj4String string

The proj4string (coordinate system) of the input line.

numberOfSegments int

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.

GetGradeOfLineAsync(LineShape, int, double, DistanceUnit, DistanceUnit)

Get the grade (slope) of a line.

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

Parameters

line LineShape

The line that nedd to get the grade.

lineProjectionInSrid int

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, int, int, DistanceUnit)

Get the grade (slope) of a line.

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

Parameters

line LineShape

The line that nedd to get the grade.

lineProjectionInSrid int

The SRID (coordinate system) of the input line.

numberOfSegments int

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, double, DistanceUnit, DistanceUnit)

Get the grade (slope) of a line.

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

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.

GetGradeOfLineAsync(LineShape, string, int, DistanceUnit)

Get the grade (slope) of a line.

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

Parameters

line LineShape

The line that nedd to get the grade.

lineProjectionInProj4String string

The proj4string (coordinate system) of the input line.

numberOfSegments int

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.

GetGradeOfLineInDecimalDegree(LineShape, double, DistanceUnit, DistanceUnit)

Get the grade (slope) of a line.

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

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.

GetGradeOfLineInDecimalDegree(LineShape, int, DistanceUnit)

Get the grade (slope) of a line.

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

Parameters

line LineShape

The line that nedd to get the grade.

numberOfSegments int

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.

GetGradeOfLineInDecimalDegreeAsync(LineShape, double, DistanceUnit, DistanceUnit)

Get the grade (slope) of a line.

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

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.

GetGradeOfLineInDecimalDegreeAsync(LineShape, int, DistanceUnit)

Get the grade (slope) of a line.

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

Parameters

line LineShape

The line that nedd to get the grade.

numberOfSegments int

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.