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

ITerrainEdit3.DeleteDataSourceData2 Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > GeodatabaseExtensions > ESRI.ArcGIS.GeoDatabaseExtensions > Interfaces > IT > ITerrainEdit3 Interface > ITerrainEdit3.DeleteDataSourceData2 Method
ArcGIS Developer Help

ITerrainEdit3.DeleteDataSourceData2 Method

Removes measurements from a terrain data source (feature class).

[Visual Basic .NET]
Public Sub DeleteDataSourceData2 ( _
    ByVal index As Integer, _
    ByVal pointCountFieldName As String, _
    ByVal pAOI As IGeometry, _
    ByVal pTrackCancel As ITrackCancel _
public void DeleteDataSourceData2 (
    int index,
    string pointCountFieldName,
    IGeometry pAOI,
    ITrackCancel pTrackCancel
HRESULT DeleteDataSourceData2(
  long index,
  BSTR pointCountFieldName,
  IGeometry* pAOI,
  ITrackCancel* pTrackCancel
index [in]

index is a parameter of type long pointCountFieldName [in]
pointCountFieldName is a parameter of type BSTR pAOI [in]
pAOI is a parameter of type IGeometry* pTrackCancel [in]
pTrackCancel is a parameter of type ITrackCancel*

Product Availability

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


Used to delete points from a terrain dataset.

index is used to indicate which data source to delete points from. The data source must be a multipoint or point based feature class. It can be embedded or referenced.

pAOI is an envelope or polygon used to define an area of interest. Points inside pAOI will be deleted.

pTrackCancel is a reference to a CancelTracker to support progress reporting and the ability to halt the process. To bypass this feature pass a NULL pointer.



The terrain will need to be rebuilt after calling this method.

A call should be made to ITerrainEdit2.UpdateExtent if extent in XY or Z has shrunk.

See Also

ITerrainEdit3 Interface