Class TerrainClass

Namespace
ESRI.ArcGIS.GeoDatabaseExtensions
Assembly
ESRI.Server.GeoDatabaseExtensions.dll
[Guid("EA9EB4A1-77B3-433C-A7DD-BB4436FA0E98")]
[ClassInterface(ClassInterfaceType.None)]
public class TerrainClass : Terrain, IDataset, ITerrainEditEvents_Event, IGeoDataset, ITerrain2, ITerrain, ITerrainEdit3, ITerrainEdit2, ITerrainEdit, ISchemaLock, IDatasetAnalyze, IDatasetComponent, IMetadata, IMetadataEdit, INativeTypeInfo
Inheritance
TerrainClass
Implements
ITerrainEditEvents_Event
Inherited Members

Explicit Interface Implementations

AddDataSource(ITerrainDataSource)

Adds a reference to a feature class.

virtual void AddDataSource(ITerrainDataSource pDataSource)

Parameters

pDataSource ITerrainDataSource

AddDataSourceData(int, IEnvelope, IFeatureClass, ITrackCancel)

Appends measurements to a terrain data source (feature class).

virtual void AddDataSourceData(int Index, IEnvelope pAOI, IFeatureClass pInFC, ITrackCancel pTrackCancel)

Parameters

Index int
pAOI IEnvelope
pInFC IFeatureClass
pTrackCancel ITrackCancel

AddDataSourceData2(int, string, IGeometry, IFeatureClass, ITrackCancel)

Appends measurements to terrain data source (feature class).

virtual void AddDataSourceData2(int Index, string pointCountFieldName, IGeometry pAOI, IFeatureClass pInFC, ITrackCancel pTrackCancel)

Parameters

Index int
pointCountFieldName string
pAOI IGeometry
pInFC IFeatureClass
pTrackCancel ITrackCancel

AddPyramidLevel(ITerrainPyramidLevel)

Adds a pyramid level.

virtual void AddPyramidLevel(ITerrainPyramidLevel pPyramidLevel)

Parameters

pPyramidLevel ITerrainPyramidLevel

AllowableComponents

The allowable components to be analyzed.

virtual int AllowableComponents { get; }

Returns

int

Remarks

The AllowableComponents property indicates which parts of the table or feature class can be analyzed. The returned value is based on the esriTableComponents enumeration. Members from this enumeration can be bitwise or’d together.

Analyze(int)

Analyze the data to update/generate DBMS statistics.

virtual void Analyze(int tableComponents)

Parameters

tableComponents int

Remarks

When applied to a feature dataset, Analyze updates the statistics for all of the tables.

BrowseName

The browse name of the dataset.

virtual string BrowseName { get; set; }

Returns

string

Remarks

BrowseName returns file names without their extension. For example, States.shp would appear as States.

Build(ITrackCancel)

Constructs the terrain.

virtual void Build(ITrackCancel pTrackCancel)

Parameters

pTrackCancel ITrackCancel

CalculateFieldStatistics(int, IStringArray, ITrackCancel)

Calculate Terrain blob field statistics of the specified embedded data source.

virtual void CalculateFieldStatistics(int Index, IStringArray pFieldNames, ITrackCancel pTrackCancel)

Parameters

Index int
pFieldNames IStringArray
pTrackCancel ITrackCancel

CanCopy()

True if this dataset can be copied.

virtual bool CanCopy()

Returns

bool

Remarks

The CanCopy, CanDelete, and CanRename properties are meant to be used in conjunction with the Copy, Delete, and Rename methods and signify whether a dataset is supported by these methods.  For example, you may not delete a network feature class nor can you use the Copy method on a Geodatabase feature class.  To copy Geodatabase datasets, including feature classes, geometric networks, topologies, etc., use the IGeoDBDataTransfer interface.

The CanCopy method is supported by:

  • CAD Drawings
  • Coverages
  • DBase Tables
  • Info Tables
  • Raster Datasets
  • SDC datasets
  • SDC Network Datasets
  • Shapefiles
  • Shapefile Network Datasets

CanDelete()

True if this dataset can be deleted.

virtual bool CanDelete()

Returns

bool

Remarks

The CanCopy, CanDelete, and CanRename properties are meant to be used in conjunction with the Copy, Delete, and Rename methods and signify whether a dataset is supported by these methods.  For example, you may not delete a network feature class nor can you use the Copy method on a Geodatabase feature class.  To copy Geodatabase datasets, including feature classes, geometric networks, topologies, etc., use the IGeoDBDataTransfer interface.

CanEditMetadata

Indicates if metadata can be edited.

virtual bool CanEditMetadata { get; }

Returns

bool

Remarks

This property is available to those objects that support metadata.

CanRename()

True if this dataset can be renamed.

virtual bool CanRename()

Returns

bool

Remarks

The CanCopy, CanDelete, and CanRename properties are meant to be used in conjunction with the Copy, Delete, and Rename methods and signify whether a dataset is supported by these methods.  For example, you may not delete or rename a network feature class nor can you use the Copy method on a Geodatabase feature class.  To copy Geodatabase datasets, including feature classes, geometric networks, topologies, etc., use the IGeoDBDataTransfer interface.

Category

The category of the dataset.

virtual string Category { get; }

Returns

string

Remarks

IDataset::Category returns a description of the category of the dataset.  The description returned from the Category property is the same value that is displayed in the Type column within the Contents tab in ArcCatalog.  The value will contain a description of the dataset such as "Topology" prefixed with a description of the type of workspace containing the dataset such as "File Geodatabase".

The description returned from IDataset::Category may change between releases of ArcGIS. In addition to this, returned strings are localized, meaning that code relying on a specific string being provided may fail when deployed with a different version of ArcGIS than it was developed with, or when deployed to a client using a different language than it was developed with.

ChangeMaxScale(int, int)

Modifies the largest display scale used for a particular level of a terrain pyramid.

virtual void ChangeMaxScale(int Index, int newScale)

Parameters

Index int
newScale int

ChangeResolutionBounds(int, double, double)

Change the resolution bounds of a data source.

virtual void ChangeResolutionBounds(int Index, double lowerBound, double upperBound)

Parameters

Index int
lowerBound double
upperBound double

ChangeSchemaLock(esriSchemaLock)

Changes a schema lock.

virtual void ChangeSchemaLock(esriSchemaLock schemaLock)

Parameters

schemaLock esriSchemaLock

Remarks

There are two kinds of schema locks: shared and exclusive. Shared schema locks are applied automatically by the geodatabase when accessing a dataset and are removed when all references to the dataset are removed. For this reason, it's not necessary to explicitly apply or remove shared schema locks. There is no limit to the number of shared schema locks a dataset or object can have at any given time.
In contrast to shared schema locks, exclusive schema locks are controlled by the developer or ArcGIS application, such as ArcMap or ArcCatalog. An exclusive lock is used to lock a geodatabase dataset or object from use by others to make the necessary changes to it. An exclusive lock is promoted from a shared lock and demoted back to a shared lock when no longer needed. The presence of additional shared schema locks on a dataset or object prevents an exclusive schema lock from being applied and precludes the ability to make changes to the underlying dataset and its schema while it is in use. Only one exclusive schema lock is allowed per dataset. As opposed to shared schema locks, exclusive schema locks are not applied or removed automatically; it is the responsibility of the developer to apply or remove exclusive schema locks.
Limit the scope of exclusive schema locks to the operation that requires the lock. Gather the necessary information to perform the action, obtain the exclusive lock, make the change, and release the lock. Some examples of operations for which an exclusive schema lock should be obtained include:
  • Modifications to attribute domains, such as adding or removing values from a coded value domain or changing the range for range domains
  • Adding or deleting a field from a feature class or object class
  • Associating a class extension with a feature class
  • Creating a topology, geometric network, network dataset, terrain, schematic dataset, representation, or cadastral fabric on a set of feature classes
  • Any use of the IClassSchemaEdit interface
  • Putting a feature class into and taking it out of load-only mode with the IFeatureClassLoad.LoadOnlyMode method
  • Managing (creating, deleting, or modifying) spatial and attribute indexes
Once the action requiring an exclusive schema lock is complete, the exclusive schema lock must be demoted to a shared lock. This includes when errors are raised during the schema modification, for example, consider the case where a field is being deleted from a feature class. To delete the field, an exclusive schema lock is obtained. However, on the call to DeleteField, an error is thrown; that is, the field being deleted is a required field, such as the ObjectID field. In the handling of the error, the exclusive schema lock must be demoted to a shared lock before proceeding.
 
 

ChangeUsageInOverview(int, bool)

Change the ApplyToOverviewTerrain property of the specified data source.

virtual void ChangeUsageInOverview(int Index, bool bApply)

Parameters

Index int
bApply bool

Copy(string, IWorkspace)

Copies this dataset to a new dataset with the specified name.

virtual IDataset Copy(string copyName, IWorkspace copyWorkspace)

Parameters

copyName string
copyWorkspace IWorkspace

Returns

IDataset

Remarks

IDataset::Copy should only be used with datasets from file-based data sources, such as shapefiles and coverages.

CreateDynamicSurface()

Returns an implicit surface from which TINs and rasters are derived.

virtual IDynamicSurface CreateDynamicSurface()

Returns

IDynamicSurface

DataElement

The data element corresponding to the dataset component.

virtual IDEDataset DataElement { get; }

Returns

IDEDataset

Remarks

The DataElement method is used to access the data element for this dataset component.

DataSource[int]

Returns the data source specified by the index.

virtual ITerrainDataSource DataSource[int Index] { get; }

Parameters

Index int

Returns

ITerrainDataSource

DataSourceCount

The number of data sources participating in the terrain.

virtual int DataSourceCount { get; }

Returns

int

Delete()

Deletes this dataset.

virtual void Delete()

Remarks

Certain feature classes, such as network and topology feature classes, cannot be deleted until their containing objects are deleted.

DeleteDataSourceData(int, IEnvelope, ITrackCancel)

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

virtual void DeleteDataSourceData(int Index, IEnvelope pAOI, ITrackCancel pTrackCancel)

Parameters

Index int
pAOI IEnvelope
pTrackCancel ITrackCancel

DeleteDataSourceData2(int, string, IGeometry, ITrackCancel)

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

virtual void DeleteDataSourceData2(int Index, string pointCountFieldName, IGeometry pAOI, ITrackCancel pTrackCancel)

Parameters

Index int
pointCountFieldName string
pAOI IGeometry
pTrackCancel ITrackCancel

DeleteDataSourceDataByFC(int, string, IFeatureClass, bool, ITrackCancel)

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

virtual void DeleteDataSourceDataByFC(int Index, string pointCountFieldName, IFeatureClass pFC, bool bSparseData, ITrackCancel pTrackCancel)

Parameters

Index int
pointCountFieldName string
pFC IFeatureClass
bSparseData bool
pTrackCancel ITrackCancel

Extent

The extent of the GeoDataset.

virtual IEnvelope Extent { get; }

Returns

IEnvelope

Remarks

The IGeoDataset::Extent property returns an envelope representing the maximum extent of data which has been stored in the dataset.

Consider the following scenario. A new feature class has features added to it. The IGeoDataset::Extent is then requested and an envelope is returned. The extents of the envelope returned are represented by the red box in the image below.

The red box represents the IGeoDataset extent

If a portion of the features were then deleted and the extent is again requested an envelope with the exact same extents as during the first request would be returned (see image below). This is because the deletion of features does not shrink the extent. However all additions of features outside the red box would increase the envelope returned to encompass the newly added features.

The red box represents the IGeoDataset extent after some of the features have been deleted

If you would like to update the IGeoDataset::Extent property to reflect the current features in your dataset please see IFeatureClassManage::UpdateExtent (also see IFeatureClassLoad). In the image below the extent has been updated and a new envelope is being returned.

The red box represents the IGeoDataset extent after it has been updated

ESRI's GroupLayer implements this property differently from most other layer coclasses. When you instantiate a new GroupLayer, this property will return a valid envelope with zero height and width. With most other newly instantiated layers (for example FeatureLayer, RasterLayer, TinLayer), this property initally returns Nothing.

 

ExtractFromEmbeddedDataSource(int, IFeatureClass, IEnvelope, double, ITrackCancel)

Copies features of an embedded data source to the specified feature class.

virtual void ExtractFromEmbeddedDataSource(int Index, IFeatureClass pFeatureClass, IEnvelope pAOI, double Resolution, ITrackCancel pTrackCancel)

Parameters

Index int
pFeatureClass IFeatureClass
pAOI IEnvelope
Resolution double
pTrackCancel ITrackCancel

FeatureDataset

The feature dataset which contains the terrain.

virtual IFeatureDataset FeatureDataset { get; }

Returns

IFeatureDataset

FullName

The associated name object.

virtual IName FullName { get; }

Returns

IName

Remarks

The FullName property returns a Name object for the dataset. The Name object can be persisted and provides a way to get back to the dataset in a future session of the application, via the Open method on the Name object.

GetCurrentSchemaLocks(out IEnumSchemaLockInfo)

The list of current locks.

virtual void GetCurrentSchemaLocks(out IEnumSchemaLockInfo schemaLockInfo)

Parameters

schemaLockInfo IEnumSchemaLockInfo

Remarks

The ISchemaLockInfo interface is used in concert with ISchemaLock to provide information about a schema lock, for example, whether it is shared or exclusive and for ArcSDE geodatabases, the name of the user who has the lock.  Note that there will always be at least one schema lock on the dataset.  Also note that by checking the schema locks on a dataset a shared schema lock is applied to the data. 

GetDirtyTiles()

Returns all dirty tiles.

virtual IEnumEnvelope GetDirtyTiles()

Returns

IEnumEnvelope

GetEmbeddedDataSourceShapeFieldName()

Returns the 'Shape' field name of the embedded data sources.

virtual string GetEmbeddedDataSourceShapeFieldName()

Returns

string

GetPointCount(IEnvelope, double)

Returns the approximate number of points in the terrain within a given area and at a particular pyramid level.

virtual double GetPointCount(IEnvelope pAOI, double Resolution)

Parameters

pAOI IEnvelope
Resolution double

Returns

double

ID

The database identifier of the terrain.

virtual int ID { get; }

Returns

int

ITerrain2_CreateDynamicSurface()

virtual IDynamicSurface ITerrain2_CreateDynamicSurface()

Returns

IDynamicSurface

ITerrain2_DataSource[int]

virtual ITerrainDataSource ITerrain2_DataSource[int Index] { get; }

Parameters

Index int

Returns

ITerrainDataSource

ITerrain2_DataSourceCount

virtual int ITerrain2_DataSourceCount { get; }

Returns

int

ITerrain2_Extent

virtual IEnvelope ITerrain2_Extent { get; }

Returns

IEnvelope

ITerrain2_ExtractFromEmbeddedDataSource(int, IFeatureClass, IEnvelope, double, ITrackCancel)

virtual void ITerrain2_ExtractFromEmbeddedDataSource(int Index, IFeatureClass pFeatureClass, IEnvelope pAOI, double Resolution, ITrackCancel pTrackCancel)

Parameters

Index int
pFeatureClass IFeatureClass
pAOI IEnvelope
Resolution double
pTrackCancel ITrackCancel

ITerrain2_FeatureDataset

virtual IFeatureDataset ITerrain2_FeatureDataset { get; }

Returns

IFeatureDataset

ITerrain2_GetDirtyTiles()

virtual IEnumEnvelope ITerrain2_GetDirtyTiles()

Returns

IEnumEnvelope

ITerrain2_GetPointCount(IEnvelope, double)

virtual double ITerrain2_GetPointCount(IEnvelope pAOI, double Resolution)

Parameters

pAOI IEnvelope
Resolution double

Returns

double

ITerrain2_ID

virtual int ITerrain2_ID { get; }

Returns

int

ITerrain2_IsDirty

virtual bool ITerrain2_IsDirty { get; }

Returns

bool

ITerrain2_IsValid

virtual bool ITerrain2_IsValid { get; }

Returns

bool

ITerrain2_MaxOverviewTerrainPoints

virtual int ITerrain2_MaxOverviewTerrainPoints { get; }

Returns

int

ITerrain2_MaxPointsPerShape

virtual int ITerrain2_MaxPointsPerShape { get; }

Returns

int

ITerrain2_Name

virtual string ITerrain2_Name { get; }

Returns

string

ITerrain2_PyramidLevel[int]

virtual ITerrainPyramidLevel ITerrain2_PyramidLevel[int Index] { get; }

Parameters

Index int

Returns

ITerrainPyramidLevel

ITerrain2_PyramidLevelCount

virtual int ITerrain2_PyramidLevelCount { get; }

Returns

int

ITerrain2_PyramidType

virtual esriTerrainPyramidType ITerrain2_PyramidType { get; }

Returns

esriTerrainPyramidType

ITerrain2_QueryTileInfo(out int, out int, out int, out int, out double, out double, out double, out int, out int)

virtual void ITerrain2_QueryTileInfo(out int pRowBegin, out int pRowEnd, out int pColBegin, out int pColEnd, out double pXMin, out double pYMin, out double pTileSize, out int pRowCountDomain, out int pColCountDomain)

Parameters

pRowBegin int
pRowEnd int
pColBegin int
pColEnd int
pXMin double
pYMin double
pTileSize double
pRowCountDomain int
pColCountDomain int

ITerrain2_Size

virtual double ITerrain2_Size { get; }

Returns

double

ITerrain2_SpatialReference

virtual ISpatialReference ITerrain2_SpatialReference { get; }

Returns

ISpatialReference

ITerrain2_TileSize

virtual double ITerrain2_TileSize { get; }

Returns

double

ITerrainEdit2_AddDataSource(ITerrainDataSource)

virtual void ITerrainEdit2_AddDataSource(ITerrainDataSource pDataSource)

Parameters

pDataSource ITerrainDataSource

ITerrainEdit2_AddDataSourceData(int, IEnvelope, IFeatureClass, ITrackCancel)

virtual void ITerrainEdit2_AddDataSourceData(int Index, IEnvelope pAOI, IFeatureClass pInFC, ITrackCancel pTrackCancel)

Parameters

Index int
pAOI IEnvelope
pInFC IFeatureClass
pTrackCancel ITrackCancel

ITerrainEdit2_AddPyramidLevel(ITerrainPyramidLevel)

virtual void ITerrainEdit2_AddPyramidLevel(ITerrainPyramidLevel pPyramidLevel)

Parameters

pPyramidLevel ITerrainPyramidLevel

ITerrainEdit2_Build(ITrackCancel)

virtual void ITerrainEdit2_Build(ITrackCancel pTrackCancel)

Parameters

pTrackCancel ITrackCancel

ITerrainEdit2_ChangeMaxScale(int, int)

virtual void ITerrainEdit2_ChangeMaxScale(int Index, int newScale)

Parameters

Index int
newScale int

ITerrainEdit2_ChangeResolutionBounds(int, double, double)

virtual void ITerrainEdit2_ChangeResolutionBounds(int Index, double lowerBound, double upperBound)

Parameters

Index int
lowerBound double
upperBound double

ITerrainEdit2_DeleteDataSourceData(int, IEnvelope, ITrackCancel)

virtual void ITerrainEdit2_DeleteDataSourceData(int Index, IEnvelope pAOI, ITrackCancel pTrackCancel)

Parameters

Index int
pAOI IEnvelope
pTrackCancel ITrackCancel

ITerrainEdit2_RemoveDataSource(int)

virtual void ITerrainEdit2_RemoveDataSource(int Index)

Parameters

Index int

ITerrainEdit2_RemovePyramidLevel(int)

virtual void ITerrainEdit2_RemovePyramidLevel(int Index)

Parameters

Index int

ITerrainEdit2_ReplaceDataSourceData(int, IEnvelope, IFeatureClass, ITrackCancel)

virtual void ITerrainEdit2_ReplaceDataSourceData(int Index, IEnvelope pAOI, IFeatureClass pInFC, ITrackCancel pTrackCancel)

Parameters

Index int
pAOI IEnvelope
pInFC IFeatureClass
pTrackCancel ITrackCancel

ITerrainEdit3_AddDataSource(ITerrainDataSource)

virtual void ITerrainEdit3_AddDataSource(ITerrainDataSource pDataSource)

Parameters

pDataSource ITerrainDataSource

ITerrainEdit3_AddDataSourceData(int, IEnvelope, IFeatureClass, ITrackCancel)

virtual void ITerrainEdit3_AddDataSourceData(int Index, IEnvelope pAOI, IFeatureClass pInFC, ITrackCancel pTrackCancel)

Parameters

Index int
pAOI IEnvelope
pInFC IFeatureClass
pTrackCancel ITrackCancel

ITerrainEdit3_AddPyramidLevel(ITerrainPyramidLevel)

virtual void ITerrainEdit3_AddPyramidLevel(ITerrainPyramidLevel pPyramidLevel)

Parameters

pPyramidLevel ITerrainPyramidLevel

ITerrainEdit3_Build(ITrackCancel)

virtual void ITerrainEdit3_Build(ITrackCancel pTrackCancel)

Parameters

pTrackCancel ITrackCancel

ITerrainEdit3_ChangeMaxScale(int, int)

virtual void ITerrainEdit3_ChangeMaxScale(int Index, int newScale)

Parameters

Index int
newScale int

ITerrainEdit3_ChangeResolutionBounds(int, double, double)

virtual void ITerrainEdit3_ChangeResolutionBounds(int Index, double lowerBound, double upperBound)

Parameters

Index int
lowerBound double
upperBound double

ITerrainEdit3_DeleteDataSourceData(int, IEnvelope, ITrackCancel)

virtual void ITerrainEdit3_DeleteDataSourceData(int Index, IEnvelope pAOI, ITrackCancel pTrackCancel)

Parameters

Index int
pAOI IEnvelope
pTrackCancel ITrackCancel

ITerrainEdit3_RemoveDataSource(int)

virtual void ITerrainEdit3_RemoveDataSource(int Index)

Parameters

Index int

ITerrainEdit3_RemovePyramidLevel(int)

virtual void ITerrainEdit3_RemovePyramidLevel(int Index)

Parameters

Index int

ITerrainEdit3_ReplaceDataSourceData(int, IEnvelope, IFeatureClass, ITrackCancel)

virtual void ITerrainEdit3_ReplaceDataSourceData(int Index, IEnvelope pAOI, IFeatureClass pInFC, ITrackCancel pTrackCancel)

Parameters

Index int
pAOI IEnvelope
pInFC IFeatureClass
pTrackCancel ITrackCancel

ITerrainEdit3_UpdateExtent(ITrackCancel)

virtual void ITerrainEdit3_UpdateExtent(ITrackCancel pTrackCancel)

Parameters

pTrackCancel ITrackCancel

ITerrain_Extent

The approximate xyz extent of the terrain.

virtual IEnvelope ITerrain_Extent { get; }

Returns

IEnvelope

ITerrain_Name

The name of the terrain.

virtual string ITerrain_Name { get; }

Returns

string

ITerrain_SpatialReference

The spatial reference of the terrain.

virtual ISpatialReference ITerrain_SpatialReference { get; }

Returns

ISpatialReference

IsDirty

Indicates whether or not a partial rebuild is needed.

virtual bool IsDirty { get; }

Returns

bool

IsValid

Indicates whether or not a full build is required.

virtual bool IsValid { get; }

Returns

bool

MaxOverviewTerrainPoints

The maximum number of points in the most generalized representation of a Terrain.

virtual int MaxOverviewTerrainPoints { get; }

Returns

int

MaxPointsPerShape

The maximum number of vertices per multipoint.

virtual int MaxPointsPerShape { get; }

Returns

int

Metadata

The PropertySet containing metadata.

virtual IPropertySet Metadata { get; set; }

Returns

IPropertySet

Remarks

The variable to hold the data must be of IPropertySet data type.

The metadata property is frequently used to save, or update, changes to metadata documents that have taken place through methods available on the IPropertySet, IXmlPropertySet, and/or IXmlPropertySet2 interfaces.

Name

The name of the Dataset.

virtual string Name { get; }

Returns

string

NativeType

The native type.

virtual INativeType NativeType { get; }

Returns

INativeType

OnBuild

virtual event ITerrainEditEvents_OnBuildEventHandler OnBuild

Returns

ITerrainEditEvents_OnBuildEventHandler

OnReconcile

virtual event ITerrainEditEvents_OnReconcileEventHandler OnReconcile

Returns

ITerrainEditEvents_OnReconcileEventHandler

OnRedoBuild

virtual event ITerrainEditEvents_OnRedoBuildEventHandler OnRedoBuild

Returns

ITerrainEditEvents_OnRedoBuildEventHandler

OnRedoReconcile

virtual event ITerrainEditEvents_OnRedoReconcileEventHandler OnRedoReconcile

Returns

ITerrainEditEvents_OnRedoReconcileEventHandler

OnUndoBuild

virtual event ITerrainEditEvents_OnUndoBuildEventHandler OnUndoBuild

Returns

ITerrainEditEvents_OnUndoBuildEventHandler

OnUndoReconcile

virtual event ITerrainEditEvents_OnUndoReconcileEventHandler OnUndoReconcile

Returns

ITerrainEditEvents_OnUndoReconcileEventHandler

Parent

The containing parent dataset.

virtual IDataset Parent { get; }

Returns

IDataset

Remarks

Returns the parent of the dataset component. For example, for geodatabase network datasets this will return the containing feature dataset.

PropertySet

The set of properties for the dataset.

virtual IPropertySet PropertySet { get; }

Returns

IPropertySet

Remarks

Examples of intrinsic properties for which explicit methods exist include the SpatialReference and the Extent methods available on the IGeoDataset interface. In most cases this PropertySet will be empty.

IDataset::PropertySet is not supported for Graph objects such as a Geometric Network.

PyramidLevel[int]

Returns the pyramid level specified by the index.

virtual ITerrainPyramidLevel PyramidLevel[int Index] { get; }

Parameters

Index int

Returns

ITerrainPyramidLevel

PyramidLevelCount

The number of pyramid levels in the terrain.

virtual int PyramidLevelCount { get; }

Returns

int

PyramidType

The pyramid type of this Terrain.

virtual esriTerrainPyramidType PyramidType { get; }

Returns

esriTerrainPyramidType

QueryTileInfo(out int, out int, out int, out int, out double, out double, out double, out int, out int)

Returns horizontal partitioning information about the terrain data.

virtual void QueryTileInfo(out int pRowBegin, out int pRowEnd, out int pColBegin, out int pColEnd, out double pXMin, out double pYMin, out double pTileSize, out int pRowCountDomain, out int pColCountDomain)

Parameters

pRowBegin int
pRowEnd int
pColBegin int
pColEnd int
pXMin double
pYMin double
pTileSize double
pRowCountDomain int
pColCountDomain int

RemoveDataSource(int)

Removes reference to a participating feature class.

virtual void RemoveDataSource(int Index)

Parameters

Index int

RemovePyramidLevel(int)

Removes a pyramid level.

virtual void RemovePyramidLevel(int Index)

Parameters

Index int

Rename(string)

Renames this Dataset.

virtual void Rename(string Name)

Parameters

Name string

Remarks

IDataset::Rename does not support the renaming of Graph objects such as a Geometric Network.  In addition, certain feature classes, such as network feature classes, cannot be renamed.

ReplaceDataSourceData(int, IEnvelope, IFeatureClass, ITrackCancel)

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

virtual void ReplaceDataSourceData(int Index, IEnvelope pAOI, IFeatureClass pInFC, ITrackCancel pTrackCancel)

Parameters

Index int
pAOI IEnvelope
pInFC IFeatureClass
pTrackCancel ITrackCancel

ReplaceDataSourceData2(int, string, IGeometry, IFeatureClass, ITrackCancel)

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

virtual void ReplaceDataSourceData2(int Index, string pointCountFieldName, IGeometry pAOI, IFeatureClass pInFC, ITrackCancel pTrackCancel)

Parameters

Index int
pointCountFieldName string
pAOI IGeometry
pInFC IFeatureClass
pTrackCancel ITrackCancel

SearchFromEmbeddedDataSource(int, IEnvelope, double, IStringArray, out IFeatureCursor, out ILongArray)

Returns a Search Cursor on the specified embedded data source.

virtual void SearchFromEmbeddedDataSource(int Index, IEnvelope pAOI, double Resolution, IStringArray pSubFields, out IFeatureCursor ppCursor, out ILongArray ppFieldIndices)

Parameters

Index int
pAOI IEnvelope
Resolution double
pSubFields IStringArray
ppCursor IFeatureCursor
ppFieldIndices ILongArray

Size

The total number of points in the Terrain.

virtual double Size { get; }

Returns

double

SpatialReference

The spatial reference of the GeoDataset.

virtual ISpatialReference SpatialReference { get; }

Returns

ISpatialReference

Remarks

This property is read only. For layers, when the first layer is added to ArcMap, its spatial reference is read by this property, and the map is set to this spatial reference.

Instances of the esriCarto.GroupLayer class will return null for this property, as a group layer can contain multiple datasets with different spatial references.

Modifications to a spatial reference returned by this property will not be persisted. To modify the spatial reference of a dataset, the IGeoDatasetSchemaEdit and IGeoDatasetSchemaEdit2 interfaces should be used.

Subsets

Datasets contained within this dataset.

virtual IEnumDataset Subsets { get; }

Returns

IEnumDataset

Remarks

IDataset::Subsets is not supported for Graph objects such as a Geometric Network.  To return the feature classes contained in a Geometric Network, use the IFeatureClassContainer interface.

Synchronize(esriMetadataSyncAction, int)

Updates metadata with the current properties; may create metadata if it doesn't already exist.

virtual void Synchronize(esriMetadataSyncAction action, int interval)

Parameters

action esriMetadataSyncAction
interval int

Remarks

The following actions will result in synchronization given each of the listed conditions:

Action Metadata status Esri/Sync element Interval parameter
esriMSAAccessed Doesn't matter Must not be FALSE Must be less than actual interval
esriMSAAlways Doesn't matter Doesn't matter Doesn't matter
esriMSACreated Must not exist Must not be FALSE Must be less than actual interval
esriMSANotCreated Must exist Must not be FALSE Must be less than actual interval
esriMSAOverwrite Doesn't matter Doesn't matter Doesn't matter

The difference between esriMSAAlways and esriMSAOverwrite lies in which elements are synchronized. esriMSAAlways will honor the removal or value change of an element's Sync attribute (to disable synchronization), whereas using esriMSAOverwrite is equivalent to setting the IXmlPropertySet2.OverwriteSyncAttribute to true for the metadata's property set, meaning that even elements without a Sync attribute of TRUE will be synchronized.

TileSize

The horizontal distance used to spatially index and partition terrain data.

virtual double TileSize { get; }

Returns

double

Type

The type of the Dataset.

virtual esriDatasetType Type { get; }

Returns

esriDatasetType

Remarks

The Type property returns the an esriDatasetType value indicating the dataset type, such as esriDTTable or esriDTFeatureClass.

UpdateExtent(ITrackCancel)

Refresh terrain's extent.

virtual void UpdateExtent(ITrackCancel pTrackCancel)

Parameters

pTrackCancel ITrackCancel

Workspace

The workspace containing this dataset.

virtual IWorkspace Workspace { get; }

Returns

IWorkspace

Remarks

<p>A Workspace is a container of spatial and non-spatial datasets such as feature classes, raster datasets, and tables. It provides methods to instantiate existing datasets and to create new datasets. Workspaces are classified into types specified by the <b><a href="esriWorkspaceType.htm">esriWorkspaceType</a></b> enumerator: FileSystemWorkspace, LocalDatabaseWorkspace, and RemoteDatabaseWorkspace. Shapefiles and ArcGIS for Desktop Advanced workspaces are examples of FileSystemWorkspace. A personal geodatabase stored in an Access or a File Geodatabase is an example of a LocalDatabaseWorkspace. A geodatabase stored in an RDBMS such as Oracle, DB2, SQL Server, or Informix and accessed via ArcSDE is an example of a RemoteDatabaseWorkspace.</p> <p>A Workspace hands out a <b><a href="WorkspaceName.htm">WorkspaceName</a> </b>object as the value of its FullName property. For example, the WorkspaceName for a workspace can be persisted in a map document. An application can call the <b>Open()</b> method on the workspace name after loading it from persistent storage to connect to and get an object reference to the workspace.</p>