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


ISurface.ContourList Method (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (GeoDatabase)  

ISurface.ContourList Method

Output a list of contours corresponding to the specified eleveation values.

[Visual Basic .NET]
Public Sub ContourList ( _
    ByVal pBreaks As IDoubleArray, _
    ByVal pFeatureClass As IFeatureClass, _
    ByVal FieldName As String, _
    ByVal digitsAfterDecimalPoint As Integer _
)
[C#]
public void ContourList (
    IDoubleArray pBreaks,
    IFeatureClass pFeatureClass,
    string FieldName,
    int digitsAfterDecimalPoint
);
[C++]
HRESULT ContourList(
  IDoubleArray* pBreaks,
  IFeatureClass* pFeatureClass,
  BSTR FieldName,
  long digitsAfterDecimalPoint
);
[C++]

Parameters pBreaks [in]
pBreaks is a parameter of type IDoubleArray* pFeatureClass
pFeatureClass is a parameter of type IFeatureClass* FieldName [in]
FieldName is a parameter of type BSTR digitsAfterDecimalPoint [in]
digitsAfterDecimalPoint is a parameter of type long

Product Availability

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

Description

Creates contours, based on a list of heights, sending the ouput to a polyline based feature class.

The pBreaks height list contains the elevation values for which contours will be derived.

Contours will be written to the specified 2D polyline feature class. It should be an empty feature class and is typically created immediately before calling Contour.

Do not have WorkspaceEdit turned on as this member needs to add a field to the feature class, a scheme editing operation not supported by WorkspaceEdit.

fieldName is used to name the field added to the feature class to store each contour's height.

digitsAfterDecimalPoint controls the precision of the output height values. Use a value of 0 if you want heights recorded as integers, as is likely when both the rootHeight and interval values are integers.

See Also

ISurface Interface