ESRI Topology Object.
Topology is a non-creatable object. References to non-creatable objects must be obtained through other objects.
| Interfaces | Description |
|---|---|
| IConnectionPointContainer | Supports connection points for connectable objects. |
| IDataset | Provides access to members that supply dataset information. |
| IDatasetEdit | Provides access to information about the status of datasets being edited. |
| IErrorFeatureContainer | Provides access to members that return error features. |
| IFeatureClassContainer | Provides access to members that return feature classes by name, ID and index. |
| IGeoDataset | Provides access to members that provide information about a Geographic Dataset. |
| IMetadata | Provides access to members that manage and update metadata. |
| IMetadataEdit | Provides access to members that provide information about whether metadata can be edited. |
| ISchemaLock | Provides access to members for accessing schema locking functionality. |
| ITopology2 | Provides access to members that control a topology. |
| ITopologyProperties | Provides access to members that return properties of a topology. |
| ITopologyRuleContainer | Provides access to members that return and set topology rules. |
A Topology is a collection of simple feature classes within the same feature dataset that participate in topological relationships with a set of rules that govern those relationships. The Topology object is not cocreateable, topologies must be created through another method call, ITopologyContainer::CreateTopology.
Topologies support the IFeatureClassContainer interface that can be used to return the feature classes participating in the topology. Among other interfaces, Topologies also support IDataset.
Each topology has one inherent rule, esriTRTFeatureLargerThanClusterTolerance, which identified features that are less than the defined cluster tolerance for the topology.
The following code fragment shows how to use the IDataset interface to delete the specified topology:
public void esriGeoDatabase__Topology(ITopology topology)
{
// Cast to IValidation interface
IDataset dataset = (IDataset)topology;
// Delete the Topology
dataset.Delete();
}
The following VBA code fragment shows how to use the IDataset interface to delete the selected topology in ArcCatalog:
Public Sub DeleteTopology()
Dim pGXApplication As IGxApplication
Set pGXApplication = Application
Dim pGxObject As IGxObject
Set pGxObject = pGXApplication.SelectedObject
If Not TypeOf pGxObject.InternalObjectName Is ITopologyName Then
Exit Sub
End If
Dim pName As IName
Set pName = pGxObject.InternalObjectName
Dim pDataset As IDataset
Set pDataset = pName.Open
pDataset.Delete
End Sub