Appends measurements to a terrain data source (feature class).
[Visual Basic .NET] Public Sub AddDataSourceData ( _ ByVal index As Integer, _ ByVal pAOI As IEnvelope, _ ByVal pInFC As IFeatureClass, _ ByVal pTrackCancel As ITrackCancel _ )
[C#] public void AddDataSourceData ( int index, IEnvelope pAOI, IFeatureClass pInFC, ITrackCancel pTrackCancel );
[C++]
HRESULT AddDataSourceData(
long index,
IEnvelope* pAOI,
IFeatureClass* pInFC,
ITrackCancel* pTrackCancel
);
[C++]Parameters
index [in] index is a parameter of type long pAOI [in]pAOI is a parameter of type IEnvelope
pInFC [in]pInFC is a parameter of type IFeatureClass
pTrackCancel [in]pTrackCancel is a parameter of type ITrackCancel
Product Availability
Description
The input index is the terrain data source index of the target embedded feature class. Valid values range from 0 to ITerrain.DataSourceCount-1.
The pAOI argument is the area of interest envelope that's used as a filter when pulling measurements from the input feature class. It can be set to a NULL pointer (i.e. 'Nothing' in VB) in which case the extent of the input feature class is used.
pInFC is a pointer to the input feature class from which measurements will be added. The feature class shape type must be point or multipoint.
pTrackCancel is a pointer to a CancelTracker object.
Notes
- Adding data source data will create dirty tiles in the terrain. You will need to (re)build the terrain afterward. See ITerrainEdit.Build.
- If the target embedded feature class has attributes (e.g., LIDAR intensity, class codes) the input feature class is expected to have them also. Matching fields, from source to target, is based on field name. If the input feature class shape type is point then the values of attributes need to fall in a range compatible with the BLOB type they will be written to. If the input feature class shape type is multipoint then the attribute values need to be stored in BLOBs compatible with TerrainBlobReader and TerrainBlobWriter objects and the BLOB data types (see ITerrainBlobReader.GetDataType) need to be the same.