ArcObjects Library Reference (GeoDatabase)  

ISurface.GetContour Method

Returns a countour passing through the queried point.

[Visual Basic .NET]
Public Sub GetContour ( _
    ByVal pPoint As IPoint, _
    ByRef ppContour As IPolyline, _
    ByRef pElevation As Double _
)
[C#]
public void GetContour (
    IPoint pPoint,
    ref IPolyline ppContour,
    ref double pElevation
);
[C++]
HRESULT GetContour(
  IPoint* pPoint,
  IPolyline** ppContour,
  double* pElevation
);
[C++]

Parameters

pPoint [in]

  pPoint is a parameter of type IPoint

ppContour [out]

  ppContour is a parameter of type IPolyline

pElevation [out]   pElevation is a parameter of type double

Product Availability

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

Description

Returns the contour and height corresponding to a specified query point.

If the query point falls outside the interpolation zone, or on an area of zero slope, a nil polyline (nothing) is returned along with a void value for the height. You can check for a void height using ISurface.IsVoidZ.

The IPolyline pointer that is passed need not be referencing an instantiated object. GetContour will instantiate the object itself.

The returned contour elevation will be NaN when the returned contour is empty.

See Also

ISurface Interface