ArcObjects Library Reference (GeoDatabase)  

ISurface.GetElevation Method

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

Product Availability

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

Description

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