Tools that honor the Z Tolerance environment will override the default z-tolerance on geodatasets created in a geodatabase.
For a description of the default z-tolerance, see the following topic: Spatial reference and geoprocessing.
- This environment setting will be ignored if the output is within a geodatabase feature dataset.
- For tools such as Create Feature Class, Create Feature Dataset, and Create Raster Catalog, the default z-tolerance for the output geodataset is 0.001 meters (1 millimeter) or its equivalent in the vertical coordinate units.
- If the tolerance units are not set or set to UNKNOWN, the units are assumed to be the same as those of the output vertical coordinate system.
- If the z-tolerance is less than twice the output geodataset's z-resolution value, a z-tolerance of two times the z-resolution will be used.
- The z-tolerance is not preserved in geodatabase versions earlier than 9.2.
Z Tolerance—The z-tolerance to be set on the geodatasets created by geoprocessing tools. If the default z-tolerance is inadequate, set this environment.
arcpy.env.ZTolerance = linear_unit
The z-tolerance to be set on the geodatasets created by geoprocessing tools. If the default z-tolerance is inadequate, set this environment.
# Set the ZTolerance to 0.02 Meters
arcpy.env.ZTolerance = "0.02 Meters"