Add Feature Class To Topology (Data Management)

License Level:BasicStandardAdvanced

Summary

Adds a feature class to a topology.

Usage

Syntax

AddFeatureClassToTopology_management (in_topology, in_featureclass, xy_rank, z_rank)
ParameterExplanationData Type
in_topology

The topology to which the feature class will participate.

Topology Layer
in_featureclass

The feature class to add to the topology. The feature class must be in the same feature dataset as the topology.

Feature Layer
xy_rank

The relative degree of positional accuracy associated with vertices of features in the feature class versus those in other feature classes participating in the topology. The feature class with the highest accuracy should get a higher rank (lower number, for example, 1) than a feature class which is known to be less accurate.

Long
z_rank

Feature classes that are z-aware have elevation values embedded in their geometry for each vertex. By setting a z rank, you can influence how vertices with accurate z-values are snapped or clustered with vertices that contain less accurate z measurements.

Long

Code Sample

AddFeatureClassToTopology example stand-alone script

The following stand-alone script demonstrates how to use the AddFeatureClassToTopology function.

# Name: AddFeatureClassToTopology_Example.py
# Description: Adds a feature class to participate in a topology


# Import system modules

import arcpy
arcpy.AddFeatureClassToTopology_management(r"D:\Calgary\Trans.mdb\Streets\Street_Topo",r"D:\Calgary\Trans.mdb\Streets\StreetNetwork", 1, 0.1)

Environments

Related Topics

Licensing Information

ArcGIS for Desktop Basic: No
ArcGIS for Desktop Standard: Yes
ArcGIS for Desktop Advanced: Yes
11/18/2013