Summary
Validates a geodatabase topology.
Validate Topology performs the following operations:
- Cracking and clustering of feature vertices to find features that share geometry (have common coordinates)
- Inserting common coordinate vertices into features that share geometry
- Running a set of integrity checks to identify any violations of the rules that have been defined for the topology
Usage
If you validate an enterprise geodatabase topology in ArcCatalog, the feature dataset that the topology is within must not be registered as versioned.
This tool will only process dirty areas. For details on dirty areas, see Topology in ArcGIS.
If the tool is being used in ArcMap, the Visible Extent parameter can be used to limit validation to the extent visible in the map display.
Syntax
ValidateTopology_management (in_topology, {visible_extent})
Parameter | Explanation | Data Type |
in_topology | The geodatabase topology to be validated. | Topology Layer |
visible_extent (Optional) | In ArcMap, determines whether to use the current visible extent of the map or the full extent of the topology. If run in ArcCatalog or in a Python script, the entire extent of the topology will be validated regardless of this parameter setting.
| Boolean |
Derived Output
Name | Explanation | Data Type |
out_topology |
Code sample
ValidateTopology example (stand-alone script)
The following stand-alone script demonstrates how to use the ValidateTopology function.
# Name: ValidateTopology_Example.py
# Description: Validates a topology
import arcpy
arcpy.ValidateTopology_management("D:/Calgary/Trans.gdb/Streets/Street_Topo")
Environments
Licensing information
- ArcGIS Desktop Basic: No
- ArcGIS Desktop Standard: Yes
- ArcGIS Desktop Advanced: Yes