Calculate Default Cluster Tolerance (Data Management) |
|
Release 9.2
Last modified November 29, 2010 |
![]() ![]() ![]() Print all topics in : "Tools" |
Calculates a default cluster tolerance value. Cluster tolerance and XY Tolerance are synonymous. The value returned by this tool will be identical to the xy tolerance property on a geodatabase feature class. With non-geodatabase feature classes (ie coverage feature class, shapefile, cad feature class) the value will be based on the default tolerance for the feature class' coordinate system (ie approximately 1/10th mm on the ground). For more information see Feature class basics.
The same value is available in scripting by describing the feature class, and getting the SpatialReference.XYTolerance value.
Usage tips
A cluster tolerance for a topology can be set or modified using Set Cluster Tolerance tool.
The following environment affects this tool: Workspace, scratch workspace.
Command line syntax
An overview of the Command Line window
CalculateDefaultClusterTolerance_management <in_features>
Parameter | Explanation | Data Type |
<in_features> |
The feature class for which the default cluster tolerance will be calculated. |
Feature Layer |
calculatedefaultclustertolerance_management roads.shp
Scripting syntax
About getting started with writing geoprocessing scripts
CalculateDefaultClusterTolerance_management (in_features)
Parameter | Explanation | Data Type |
in_features (Required) |
The feature class for which the default cluster tolerance will be calculated. |
Feature Layer |
import arcgisscripting gp = arcgisscripting.create() gp.workspace = "c:/temp" print gp.calculatedefaultclustertolerance("roads.shp")# The following code will give the same value
dsc = gp.describe("roads.shp") print dsc.SpatialReference.XYTolerance