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
clientId
orclientSecret
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
AreaBaseShapeThe area of a polygon shape to get the elevation.
areaProjectionInSrid
intThe SRID (coordinate system) of the input line.
intervalDistance
doubleThe 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
DistanceUnitThe unit of measure in which the IntervalDistance is expressed.
elevationUnit
DistanceUnitThe 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
AreaBaseShapeThe area of a polygon shape to get the elevation.
areaProjectionInProj4String
stringThe proj4string (coordinate system) of the input line.
intervalDistance
doubleThe 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
DistanceUnitThe unit of measure in which the IntervalDistance is expressed.
elevationUnit
DistanceUnitThe 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
AreaBaseShapeThe area of a polygon shape to get the elevation.
areaProjectionInSrid
intThe SRID (coordinate system) of the input line.
intervalDistance
doubleThe 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
DistanceUnitThe unit of measure in which the IntervalDistance is expressed.
elevationUnit
DistanceUnitThe 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
AreaBaseShapeThe area of a polygon shape to get the elevation.
areaProjectionInProj4String
stringThe proj4string (coordinate system) of the input line.
intervalDistance
doubleThe 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
DistanceUnitThe unit of measure in which the IntervalDistance is expressed.
elevationUnit
DistanceUnitThe 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
AreaBaseShapeThe area of a polygon shape to get the elevation.
intervalDistance
doubleThe 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
DistanceUnitThe unit of measure in which the IntervalDistance is expressed.
elevationUnit
DistanceUnitThe 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
AreaBaseShapeThe area of a polygon shape to get the elevation.
intervalDistance
doubleThe 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
DistanceUnitThe unit of measure in which the IntervalDistance is expressed.
elevationUnit
DistanceUnitThe 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
LineBaseShapeThe line to get the elevation.
lineProjectionInSrid
intThe SRID (coordinate system) of the input line.
intervalDistance
doubleSplits the requested line into intervals of this length. The unit of measure for this distance is specified by the IntervalDistanceUnit parameter.
intervalDistanceUnit
DistanceUnitThe unit of measure in which the
IntervalDistance
is expressed.elevationUnit
DistanceUnitThe 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
LineBaseShapeThe line to get the elevation.
lineProjectionInSrid
intThe SRID (coordinate system) of the input line.
numberOfSegments
intSplits the requested line into this many segments, then calculates elevation of each point joining the segments.
elevationUnit
DistanceUnitThe 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
LineBaseShapeThe line to get the elevation.
lineProjectionInProj4String
stringThe proj4string (coordinate system) of the input line.
intervalDistance
doubleSplits the requested line into intervals of this length. The unit of measure for this distance is specified by the IntervalDistanceUnit parameter.
intervalDistanceUnit
DistanceUnitThe unit of measure in which the
IntervalDistance
is expressed.elevationUnit
DistanceUnitThe 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
LineBaseShapeThe line to get the elevation.
lineProjectionInProj4String
stringThe proj4string (coordinate system) of the input line.
numberOfSegments
intSplits the requested line into this many segments, then calculates elevation of each point joining the segments.
elevationUnit
DistanceUnitThe 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
LineBaseShapeThe line to get the elevation.
lineProjectionInSrid
intThe SRID (coordinate system) of the input line.
intervalDistance
doubleSplits the requested line into intervals of this length. The unit of measure for this distance is specified by the IntervalDistanceUnit parameter.
intervalDistanceUnit
DistanceUnitThe unit of measure in which the
IntervalDistance
is expressed.elevationUnit
DistanceUnitThe 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
LineBaseShapeThe line to get the elevation.
lineProjectionInSrid
intThe SRID (coordinate system) of the input line.
numberOfSegments
intSplits the requested line into this many segments, then calculates elevation of each point joining the segments.
elevationUnit
DistanceUnitThe 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
LineBaseShapeThe line to get the elevation.
lineProjectionInProj4String
stringThe proj4string (coordinate system) of the input line.
intervalDistance
doubleSplits the requested line into intervals of this length. The unit of measure for this distance is specified by the IntervalDistanceUnit parameter.
intervalDistanceUnit
DistanceUnitThe unit of measure in which the
IntervalDistance
is expressed.elevationUnit
DistanceUnitThe 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
LineBaseShapeThe line to get the elevation.
lineProjectionInProj4String
stringThe proj4string (coordinate system) of the input line.
numberOfSegments
intSplits the requested line into this many segments, then calculates elevation of each point joining the segments.
elevationUnit
DistanceUnitThe 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
LineBaseShapeThe line to get the elevation.
intervalDistance
doubleSplits the requested line into intervals of this length. The unit of measure for this distance is specified by the IntervalDistanceUnit parameter.
intervalDistanceUnit
DistanceUnitThe unit of measure in which the
IntervalDistance
is expressed.elevationUnit
DistanceUnitThe 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
LineBaseShapeThe line to get the elevation.
numberOfSegments
intSplits the requested line into this many segments, then calculates elevation of each point joining the segments.
elevationUnit
DistanceUnitThe 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
LineBaseShapeThe line to get the elevation.
intervalDistance
doubleSplits the requested line into intervals of this length. The unit of measure for this distance is specified by the IntervalDistanceUnit parameter.
intervalDistanceUnit
DistanceUnitThe unit of measure in which the
IntervalDistance
is expressed.elevationUnit
DistanceUnitThe 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
LineBaseShapeThe line to get the elevation.
numberOfSegments
intSplits the requested line into this many segments, then calculates elevation of each point joining the segments.
elevationUnit
DistanceUnitThe 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
doubleThe X coordinate of the point.
y
doubleThe Y coordinate of the point.
pointProjectionInSrid
intThe SRID of the point
elevationUnit
DistanceUnitThe 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
doubleThe X coordinate of the point.
y
doubleThe Y coordinate of the point.
pointProjectionInProj4String
stringThe proj4string of the point.
elevationUnit
DistanceUnitThe 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
doubleThe X coordinate of the point.
y
doubleThe Y coordinate of the point.
pointProjectionInSrid
intThe SRID of the point.
elevationUnit
DistanceUnitThe 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
x
doubleThe Y coordinate of the point.
y
doubleThe X coordinate of the point.
pointProjectionInProj4String
stringThe proj4string of the point.
elevationUnit
DistanceUnitThe 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
latitude
doubleThe latitude of the point.
longitude
doubleThe longitude of the point.
elevationUnit
DistanceUnitThe 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
doubleThe latitude of the point.
longitude
doubleThe longitude of the point.
elevationUnit
DistanceUnitThe 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
points
IEnumerable<PointShape>The points to get the elevation.
pointsProjectionInSrid
intThe SRID (coordinate system) of the input line.
elevationUnit
DistanceUnitThe 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
stringThe proj4string of the point.
elevationUnit
DistanceUnitThe 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
intThe SRID (coordinate system) of the input line.
elevationUnit
DistanceUnitThe 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
stringThe proj4string of the point.
elevationUnit
DistanceUnitThe 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
DistanceUnitThe 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
DistanceUnitThe 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
LineShapeThe line that nedd to get the grade.
lineProjectionInSrid
intThe SRID (coordinate system) of the input line.
intervalDistance
doubleSplits the requested line into intervals of this length. The unit of measure for this distance is specified by the IntervalDistanceUnit parameter.
intervalDistanceUnit
DistanceUnitThe unit of measure in which the
IntervalDistance
is expressed.elevationUnit
DistanceUnitThe 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
LineShapeThe line that nedd to get the grade.
lineProjectionInSrid
intThe SRID (coordinate system) of the input line.
numberOfSegments
intSplits the requested line into this many segments, then calculates elevation of each point joining the segments.
elevationUnit
DistanceUnitThe 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
LineShapeThe line that nedd to get the grade.
lineProjectionInProj4String
stringThe proj4string (coordinate system) of the input line.
intervalDistance
doubleSplits the requested line into intervals of this length. The unit of measure for this distance is specified by the IntervalDistanceUnit parameter.
intervalDistanceUnit
DistanceUnitThe unit of measure in which the
IntervalDistance
is expressed.elevationUnit
DistanceUnitThe 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
LineShapeThe line that nedd to get the grade.
lineProjectionInProj4String
stringThe proj4string (coordinate system) of the input line.
numberOfSegments
intSplits the requested line into this many segments, then calculates elevation of each point joining the segments.
elevationUnit
DistanceUnitThe 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
LineShapeThe line that nedd to get the grade.
lineProjectionInSrid
intThe SRID (coordinate system) of the input line.
intervalDistance
doubleSplits the requested line into intervals of this length. The unit of measure for this distance is specified by the IntervalDistanceUnit parameter.
intervalDistanceUnit
DistanceUnitThe unit of measure in which the
IntervalDistance
is expressed.elevationUnit
DistanceUnitThe 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
LineShapeThe line that nedd to get the grade.
lineProjectionInSrid
intThe SRID (coordinate system) of the input line.
numberOfSegments
intSplits the requested line into this many segments, then calculates elevation of each point joining the segments.
elevationUnit
DistanceUnitThe 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
LineShapeThe line that nedd to get the grade.
lineProjectionInProj4String
stringThe proj4string (coordinate system) of the input line.
intervalDistance
doubleSplits the requested line into intervals of this length. The unit of measure for this distance is specified by the IntervalDistanceUnit parameter.
intervalDistanceUnit
DistanceUnitThe unit of measure in which the
IntervalDistance
is expressed.elevationUnit
DistanceUnitThe 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
LineShapeThe line that nedd to get the grade.
lineProjectionInProj4String
stringThe proj4string (coordinate system) of the input line.
numberOfSegments
intSplits the requested line into this many segments, then calculates elevation of each point joining the segments.
elevationUnit
DistanceUnitThe 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
LineShapeThe line that nedd to get the grade.
intervalDistance
doubleSplits the requested line into intervals of this length. The unit of measure for this distance is specified by the IntervalDistanceUnit parameter.
intervalDistanceUnit
DistanceUnitThe unit of measure in which the
IntervalDistance
is expressed.elevationUnit
DistanceUnitThe 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
LineShapeThe line that nedd to get the grade.
numberOfSegments
intSplits the requested line into this many segments, then calculates elevation of each point joining the segments.
elevationUnit
DistanceUnitThe 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
LineShapeThe line that nedd to get the grade.
intervalDistance
doubleSplits the requested line into intervals of this length. The unit of measure for this distance is specified by the IntervalDistanceUnit parameter.
intervalDistanceUnit
DistanceUnitThe unit of measure in which the
IntervalDistance
is expressed.elevationUnit
DistanceUnitThe 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
LineShapeThe line that nedd to get the grade.
numberOfSegments
intSplits the requested line into this many segments, then calculates elevation of each point joining the segments.
elevationUnit
DistanceUnitThe unit of measure in which the elevation result is expressed. Defaults to "Feet".
Returns
- Task<CloudGradeResult>
A collection of the elevation grade data.