Interface ITopologyProperties

Namespace
ESRI.ArcGIS.Geodatabase
Assembly
ESRI.Server.Geodatabase.dll

Provides access to members that return properties of a topology.

[Guid("40658B10-2C65-4B38-B00F-4D40AB551E27")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface ITopologyProperties

Remarks

The ITopologyProperties interface provides access to additional topology properties not supplied through the ITopology interface, such as the enumeration of feature classes and the topology's spatial reference.

[C#]

void FetchTopologyProperties(ITopology topology)

{

  // Topology properties

  ITopologyProperties topologyProperties = topology as ITopologyProperties;

  // Classes

  IEnumFeatureClass enumFeatureClass = topologyProperties.Classes;

  enumFeatureClass.Reset();

  IFeatureClass featureClass = enumFeatureClass.Next();

  // Cluster tolerance

  double clusterTolerance = topologyProperties.ClusterTolerance;

  // Spatial reference

  ISpatialReference spatialReference = topologyProperties.SpatialReference;

}

Properties

Classes

An enumerator over the FeatureClasses.

IEnumFeatureClass Classes { get; }

Property Value

IEnumFeatureClass

Remarks

The Classes property will return an enumeration of the feature classes that participate in the Topology.  Calling this method is analogous to using the IFeatureClassContainer::Classes property.

ClusterTolerance

The cluster tolerance of the topology.

double ClusterTolerance { get; }

Property Value

double

Remarks

The ClusterTolerance property will return the cluster tolerance of the Topology. It will be the same value as is returned from the ITopology::ClusterTolerance property.

SpatialReference

The spatial reference for the dataset.

ISpatialReference SpatialReference { get; }

Property Value

ISpatialReference

Remarks

The SpatialReference property will return the spatial reference of the topology.