This document is archived and information here might be outdated.  Recommended version.

ISurface.GetElevation Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IS > ISurface Interface > ISurface.GetElevation Method
ArcGIS Developer Help

ISurface.GetElevation Method

Returns the z value of the specified location.

[Visual Basic .NET]
Public Function GetElevation ( _
    ByVal pPoint As IPoint _
) As Double
public double GetElevation (
    IPoint pPoint
HRESULT GetElevation(
  IPoint* pPoint
pPoint [in]

pPoint is a parameter of type IPoint*

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


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.

See Also

ISurface Interface