MeasureTerrainProfile
Measures the terrain elevation profile along a defined path, returning a polyline with the X and Y coordinates of each of the sampled points along the path, and the Z value that was sampled from the terrain for each of these points.
JavaScript |
|
|
|
MeasureTerrainProfile( KeyPoints, SampleInterval, IncludeGroundObjects) |
C# |
|
|
|
IGeometry MeasureTerrainProfile ( IGeometry KeyPoints, double SampleInterval, bool IncludeGroundObjects = false) |
C++ |
|
|
|
HRESULT MeasureTerrainProfile ( IGeometry* KeyPoints, double SampleInterval, VARIANT_BOOL IncludeGroundObjects, IGeometry** pProfile) |
Parameters
KeyPoints
An IGeometry with the X and Y coordinates of the points marking the path to be analyzed.
SampleInterval
The distance between terrain sample points along the path. Pass zero (0) for automatic interval.
IncludeGroundObjects
A Boolean that determines if ground objects are taken into account in calculating the terrain profile.
Return Value
IGeometry
An ILineString with the X and Y coordinates of each of the sampled points along the path and the Z value that was sampled from the terrain for each of these points.
Exceptions
See: HRESULT Return Values for a list of possible values returned by the HRESULT.