RasterTerrainProviderGetHeightRelativeToShape Method (Double, Double, RasterTerrainInterpolator) |
Gets the interpolated height of the terrain at the specified longitude and latitude
relative to the provider's
Shape.
This method takes into account the heights of any reference surfaces.
Namespace:
AGI.Foundation.Terrain
Assembly:
AGI.Foundation.TerrainReaders (in AGI.Foundation.TerrainReaders.dll) Version: 24.3.420.0 (24.3.420.0)
Syntax public double GetHeightRelativeToShape(
double longitude,
double latitude,
RasterTerrainInterpolator interpolator
)
Public Function GetHeightRelativeToShape (
longitude As Double,
latitude As Double,
interpolator As RasterTerrainInterpolator
) As Double
public:
double GetHeightRelativeToShape(
double longitude,
double latitude,
RasterTerrainInterpolator^ interpolator
)
member GetHeightRelativeToShape :
longitude : float *
latitude : float *
interpolator : RasterTerrainInterpolator -> float
Parameters
- longitude
- Type: SystemDouble
The longitude, in radians.
Requesting a height for a longitude less than -π or greater than π will always return NaN.
- latitude
- Type: SystemDouble
The latitude, in radians.
Requesting a height for a latitude less than -π/2 or greater than π/2 will always return NaN.
- interpolator
- Type: AGI.Foundation.TerrainRasterTerrainInterpolator
The RasterTerrainInterpolator to use to interpolate heights for points that do not fall precisely on a post.
Return Value
Type:
Double
The height of terrain relative to
Shape, in meters.
Exceptions See Also