M Tolerance (Environment setting)

Tools that honor the M Tolerance environment will override the default m-tolerance on geodatasets created in a geodatabase.

For a description of the default m-tolerance, see the following topic: Spatial reference and geoprocessing.

Usage notes

  • For tools such as Create Feature Class, Create Feature Dataset, and Create Raster Catalog, the default m-tolerance for the output geodataset is 0.001 meters (1 millimeter) or its equivalent in the vertical coordinate units.
  • If the m-tolerance is less than twice the output geodataset's m-resolution value, an m-tolerance of two times the m-resolution will be used.
  • M-tolerances do not persist in geodatabase versions earlier than 9.2.

Dialog syntax

M Tolerance—The m-tolerance to be set on the geodatasets created by geoprocessing tools. If the default m-tolerance is inadequate, set this environment.

Scripting syntax

arcpy.env.MTolerance = double

ParametersExplanation

double

The m-tolerance to be set on the geodatasets created by geoprocessing tools. If the default m-tolerance is inadequate, set this environment.

MTolerance syntax

Script example

import arcpy

# Set the MTolerance to 0.02
arcpy.env.MTolerance = 0.02

Related topics