This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IS > ISurface Interface > ISurface.GetElevation Method (ArcObjects .NET 10.5 SDK) |
Returns the z value of the specified location.
[Visual Basic .NET] Public Function GetElevation ( _ ByVal pPoint As IPoint _ ) As Double
[C#] public double GetElevation ( IPoint pPoint );
[C++]
HRESULT GetElevation(
IPoint* pPoint,
double* pElevation
);
[C++]
Parameters pPoint [in]
pPoint is a parameter of type IPoint pElevation [out, retval] pElevation is a parameter of type double
Returns the height for the specified location.
Bilinear interpolation is used on a raster surface. Linear interpolation is used on a TIN surface
A void value is returned if the query point does not fall within the interpolation zone of the surface. You can check for this case using ISurface.IsVoidZ on the returned value.