Class ElevationCloudClient
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
Exceptions
- ArgumentNullException
Thrown when the
clientIdorclientSecretis 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
areaAreaBaseShapeThe area of a polygon shape to get the elevation.
areaProjectionInSridintThe SRID (coordinate system) of the input line.
intervalDistancedoubleThe 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.intervalDistanceUnitDistanceUnitThe unit of measure in which the IntervalDistance is expressed.
elevationUnitDistanceUnitThe 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
areaAreaBaseShapeThe area of a polygon shape to get the elevation.
areaProjectionInProj4StringstringThe proj4string (coordinate system) of the input line.
intervalDistancedoubleThe 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.intervalDistanceUnitDistanceUnitThe unit of measure in which the IntervalDistance is expressed.
elevationUnitDistanceUnitThe 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
areaAreaBaseShapeThe area of a polygon shape to get the elevation.
areaProjectionInSridintThe SRID (coordinate system) of the input line.
intervalDistancedoubleThe 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.intervalDistanceUnitDistanceUnitThe unit of measure in which the IntervalDistance is expressed.
elevationUnitDistanceUnitThe 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
areaAreaBaseShapeThe area of a polygon shape to get the elevation.
areaProjectionInProj4StringstringThe proj4string (coordinate system) of the input line.
intervalDistancedoubleThe 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.intervalDistanceUnitDistanceUnitThe unit of measure in which the IntervalDistance is expressed.
elevationUnitDistanceUnitThe 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
areaAreaBaseShapeThe area of a polygon shape to get the elevation.
intervalDistancedoubleThe 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.intervalDistanceUnitDistanceUnitThe unit of measure in which the IntervalDistance is expressed.
elevationUnitDistanceUnitThe 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
areaAreaBaseShapeThe area of a polygon shape to get the elevation.
intervalDistancedoubleThe 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.intervalDistanceUnitDistanceUnitThe unit of measure in which the IntervalDistance is expressed.
elevationUnitDistanceUnitThe 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
lineLineBaseShapeThe line to get the elevation.
lineProjectionInSridintThe SRID (coordinate system) of the input line.
intervalDistancedoubleSplits the requested line into intervals of this length. The unit of measure for this distance is specified by the IntervalDistanceUnit parameter.
intervalDistanceUnitDistanceUnitThe unit of measure in which the
IntervalDistance
is expressed.elevationUnitDistanceUnitThe 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
lineLineBaseShapeThe line to get the elevation.
lineProjectionInSridintThe SRID (coordinate system) of the input line.
numberOfSegmentsintSplits the requested line into this many segments, then calculates elevation of each point joining the segments.
elevationUnitDistanceUnitThe 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
lineLineBaseShapeThe line to get the elevation.
lineProjectionInProj4StringstringThe proj4string (coordinate system) of the input line.
intervalDistancedoubleSplits the requested line into intervals of this length. The unit of measure for this distance is specified by the IntervalDistanceUnit parameter.
intervalDistanceUnitDistanceUnitThe unit of measure in which the
IntervalDistance
is expressed.elevationUnitDistanceUnitThe 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
lineLineBaseShapeThe line to get the elevation.
lineProjectionInProj4StringstringThe proj4string (coordinate system) of the input line.
numberOfSegmentsintSplits the requested line into this many segments, then calculates elevation of each point joining the segments.
elevationUnitDistanceUnitThe 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
lineLineBaseShapeThe line to get the elevation.
lineProjectionInSridintThe SRID (coordinate system) of the input line.
intervalDistancedoubleSplits the requested line into intervals of this length. The unit of measure for this distance is specified by the IntervalDistanceUnit parameter.
intervalDistanceUnitDistanceUnitThe unit of measure in which the
IntervalDistance
is expressed.elevationUnitDistanceUnitThe 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
lineLineBaseShapeThe line to get the elevation.
lineProjectionInSridintThe SRID (coordinate system) of the input line.
numberOfSegmentsintSplits the requested line into this many segments, then calculates elevation of each point joining the segments.
elevationUnitDistanceUnitThe 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
lineLineBaseShapeThe line to get the elevation.
lineProjectionInProj4StringstringThe proj4string (coordinate system) of the input line.
intervalDistancedoubleSplits the requested line into intervals of this length. The unit of measure for this distance is specified by the IntervalDistanceUnit parameter.
intervalDistanceUnitDistanceUnitThe unit of measure in which the
IntervalDistance
is expressed.elevationUnitDistanceUnitThe 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
lineLineBaseShapeThe line to get the elevation.
lineProjectionInProj4StringstringThe proj4string (coordinate system) of the input line.
numberOfSegmentsintSplits the requested line into this many segments, then calculates elevation of each point joining the segments.
elevationUnitDistanceUnitThe 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
lineLineBaseShapeThe line to get the elevation.
intervalDistancedoubleSplits the requested line into intervals of this length. The unit of measure for this distance is specified by the IntervalDistanceUnit parameter.
intervalDistanceUnitDistanceUnitThe unit of measure in which the
IntervalDistance
is expressed.elevationUnitDistanceUnitThe 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
lineLineBaseShapeThe line to get the elevation.
numberOfSegmentsintSplits the requested line into this many segments, then calculates elevation of each point joining the segments.
elevationUnitDistanceUnitThe 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
lineLineBaseShapeThe line to get the elevation.
intervalDistancedoubleSplits the requested line into intervals of this length. The unit of measure for this distance is specified by the IntervalDistanceUnit parameter.
intervalDistanceUnitDistanceUnitThe unit of measure in which the
IntervalDistance
is expressed.elevationUnitDistanceUnitThe 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
lineLineBaseShapeThe line to get the elevation.
numberOfSegmentsintSplits the requested line into this many segments, then calculates elevation of each point joining the segments.
elevationUnitDistanceUnitThe 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
xdoubleThe X coordinate of the point.
ydoubleThe Y coordinate of the point.
pointProjectionInSridintThe SRID of the point
elevationUnitDistanceUnitThe 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
xdoubleThe X coordinate of the point.
ydoubleThe Y coordinate of the point.
pointProjectionInProj4StringstringThe proj4string of the point.
elevationUnitDistanceUnitThe 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
xdoubleThe X coordinate of the point.
ydoubleThe Y coordinate of the point.
pointProjectionInSridintThe SRID of the point.
elevationUnitDistanceUnitThe unit of measure in which the elevation result is expressed. Defaults to "Feet".
Returns
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
xdoubleThe Y coordinate of the point.
ydoubleThe X coordinate of the point.
pointProjectionInProj4StringstringThe proj4string of the point.
elevationUnitDistanceUnitThe unit of measure in which the elevation result is expressed. Defaults to "Feet".
Returns
GetElevationOfPointInDecimalDegree(double, double, DistanceUnit)
Get the elevation of a point.
public double GetElevationOfPointInDecimalDegree(double latitude, double longitude, DistanceUnit elevationUnit = DistanceUnit.Feet)
Parameters
latitudedoubleThe latitude of the point.
longitudedoubleThe longitude of the point.
elevationUnitDistanceUnitThe 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
latitudedoubleThe latitude of the point.
longitudedoubleThe longitude of the point.
elevationUnitDistanceUnitThe unit of measure in which the elevation result is expressed. Defaults to "Feet".
Returns
GetElevationOfPoints(IEnumerable<PointShape>, int, DistanceUnit)
Get the elevation of multi points.
public CloudElevationResult GetElevationOfPoints(IEnumerable<PointShape> points, int pointsProjectionInSrid, DistanceUnit elevationUnit = DistanceUnit.Feet)
Parameters
pointsIEnumerable<PointShape>The points to get the elevation.
pointsProjectionInSridintThe SRID (coordinate system) of the input line.
elevationUnitDistanceUnitThe 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
pointsIEnumerable<PointShape>The points to get the elevation.
pointsProjectionInProj4StringstringThe proj4string of the point.
elevationUnitDistanceUnitThe 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
pointsIEnumerable<PointShape>The points to get the elevation.
pointsProjectionInSridintThe SRID (coordinate system) of the input line.
elevationUnitDistanceUnitThe 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
pointsIEnumerable<PointShape>The points to get the elevation.
pointsProjectionInProj4StringstringThe proj4string of the point.
elevationUnitDistanceUnitThe 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
pointsIEnumerable<PointShape>The points to get the elevation.
elevationUnitDistanceUnitThe 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
pointsIEnumerable<PointShape>The points to get the elevation.
elevationUnitDistanceUnitThe 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
lineLineShapeThe line that nedd to get the grade.
lineProjectionInSridintThe SRID (coordinate system) of the input line.
intervalDistancedoubleSplits the requested line into intervals of this length. The unit of measure for this distance is specified by the IntervalDistanceUnit parameter.
intervalDistanceUnitDistanceUnitThe unit of measure in which the
IntervalDistance
is expressed.elevationUnitDistanceUnitThe 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
lineLineShapeThe line that nedd to get the grade.
lineProjectionInSridintThe SRID (coordinate system) of the input line.
numberOfSegmentsintSplits the requested line into this many segments, then calculates elevation of each point joining the segments.
elevationUnitDistanceUnitThe 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
lineLineShapeThe line that nedd to get the grade.
lineProjectionInProj4StringstringThe proj4string (coordinate system) of the input line.
intervalDistancedoubleSplits the requested line into intervals of this length. The unit of measure for this distance is specified by the IntervalDistanceUnit parameter.
intervalDistanceUnitDistanceUnitThe unit of measure in which the
IntervalDistance
is expressed.elevationUnitDistanceUnitThe 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
lineLineShapeThe line that nedd to get the grade.
lineProjectionInProj4StringstringThe proj4string (coordinate system) of the input line.
numberOfSegmentsintSplits the requested line into this many segments, then calculates elevation of each point joining the segments.
elevationUnitDistanceUnitThe 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
lineLineShapeThe line that nedd to get the grade.
lineProjectionInSridintThe SRID (coordinate system) of the input line.
intervalDistancedoubleSplits the requested line into intervals of this length. The unit of measure for this distance is specified by the IntervalDistanceUnit parameter.
intervalDistanceUnitDistanceUnitThe unit of measure in which the
IntervalDistance
is expressed.elevationUnitDistanceUnitThe 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
lineLineShapeThe line that nedd to get the grade.
lineProjectionInSridintThe SRID (coordinate system) of the input line.
numberOfSegmentsintSplits the requested line into this many segments, then calculates elevation of each point joining the segments.
elevationUnitDistanceUnitThe 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
lineLineShapeThe line that nedd to get the grade.
lineProjectionInProj4StringstringThe proj4string (coordinate system) of the input line.
intervalDistancedoubleSplits the requested line into intervals of this length. The unit of measure for this distance is specified by the IntervalDistanceUnit parameter.
intervalDistanceUnitDistanceUnitThe unit of measure in which the
IntervalDistance
is expressed.elevationUnitDistanceUnitThe 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
lineLineShapeThe line that nedd to get the grade.
lineProjectionInProj4StringstringThe proj4string (coordinate system) of the input line.
numberOfSegmentsintSplits the requested line into this many segments, then calculates elevation of each point joining the segments.
elevationUnitDistanceUnitThe 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
lineLineShapeThe line that nedd to get the grade.
intervalDistancedoubleSplits the requested line into intervals of this length. The unit of measure for this distance is specified by the IntervalDistanceUnit parameter.
intervalDistanceUnitDistanceUnitThe unit of measure in which the
IntervalDistance
is expressed.elevationUnitDistanceUnitThe 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
lineLineShapeThe line that nedd to get the grade.
numberOfSegmentsintSplits the requested line into this many segments, then calculates elevation of each point joining the segments.
elevationUnitDistanceUnitThe 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
lineLineShapeThe line that nedd to get the grade.
intervalDistancedoubleSplits the requested line into intervals of this length. The unit of measure for this distance is specified by the IntervalDistanceUnit parameter.
intervalDistanceUnitDistanceUnitThe unit of measure in which the
IntervalDistance
is expressed.elevationUnitDistanceUnitThe 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
lineLineShapeThe line that nedd to get the grade.
numberOfSegmentsintSplits the requested line into this many segments, then calculates elevation of each point joining the segments.
elevationUnitDistanceUnitThe unit of measure in which the elevation result is expressed. Defaults to "Feet".
Returns
- Task<CloudGradeResult>
A collection of the elevation grade data.