Tools that honor the Output has M Values environment will control whether the output geodataset will store M values.
Usage notes
- Feature vertices that do not have an M value will be assigned a value of NaN (Not a Number).
- For shapefiles, storage of M and Z values is closely connected; if the output has Z, then regardless of this environment setting, the output will also have M.
Dialog syntax
- Same as Input—If the input has M values, then the output will also have M values. If the input does not have M values, then the output will not have M values. This is the default value.
- Enabled—The output will have M values.
- Disabled—The output will not have M values.
Scripting syntax
arcpy.env.outputMFlag = output_m_flag
output_m_flag | Explanation |
---|---|
Same As Input | If the input has M values, then the output will also have M values. If the input does not have M values, then the output will not have M values. This is the default value. |
Enabled | The output will have M values. |
Disabled | The output will not have M values. |
Script example
import arcpy
# Set the outputMFlag environment to Enabled
arcpy.env.outputMFlag = "Enabled"