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


ITerrainEdit3.ReplaceDataSourceData2 Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (GeoDatabaseExtensions)  

ITerrainEdit3.ReplaceDataSourceData2 Method

Replaces measurements from a terrain data source (feature class) with measurements in another feature class.

[Visual Basic .NET]
Public Sub ReplaceDataSourceData2 ( _
    ByVal index As Integer, _
    ByVal pointCountFieldName As String, _
    ByVal pAOI As IGeometry, _
    ByVal pInFC As IFeatureClass, _
    ByVal pTrackCancel As ITrackCancel _
)
[C#]
public void ReplaceDataSourceData2 (
    int index,
    string pointCountFieldName,
    IGeometry pAOI,
    IFeatureClass pInFC,
    ITrackCancel pTrackCancel
);
[C++]
HRESULT ReplaceDataSourceData2(
  long index,
  BSTR pointCountFieldName,
  IGeometry* pAOI,
  IFeatureClass* pInFC,
  ITrackCancel* pTrackCancel
);
[C++]

Parameters 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 pInFC [in]
pInFC is a parameter of type IFeatureClass pTrackCancel [in]
pTrackCancel is a parameter of type ITrackCancel

Product Availability

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

Description

Used to replace points from one feature class that participates in the terrain with points from another feature class.

index is used to indicate which data source will be modifed. 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 the area of interest. First, points inside pAOI will be removed from the terrain data source. Then, those points or multipoint vertices from pInFC that are inside pAOI get appended. pAOI can be NULL in which case all the points from the terrain data source will be deleted before appending all the points from pInFC.

pInFC is the source of data that will be appended. It must be a multipoint or point based feature class.

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.

 

Notes:

Attributes from the input are conditionally appended to the target feature class. If there's a match in field names between the input and output the values will be brought over.

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

May require call to ITerrainEdit2.UpdateExtent if extent in XY or Z has shrunk.

See Also

ITerrainEdit3 Interface