ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Help
  • Sign Out
ArcGIS Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS Desktop

A complete professional GIS

ArcGIS Enterprise

GIS in your enterprise

ArcGIS Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

ArcMap

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • Extensions

Output has M Values (Environment setting)

  • Usage notes
  • Dialog syntax
  • Scripting syntax

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-values, then regardless of this environment setting, the output will also have m-values.

Dialog syntax

  • Same as Input—If the input has m-values, the output will also have m-values. If the input does not have m-values, 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_flagExplanation

Same As Input

If the input has m-values, the output will have m-values. If it does not have m-values, the output will not have m-values. This is the default.

Enabled

The output will have m-values.

Disabled

The output will not have m-values.

outputMFlag syntax

Script example

import arcpy

# Set the outputMFlag environment to Enabled
arcpy.env.outputMFlag = "Enabled"

Related topics

  • Spatial reference and geoprocessing
  • The properties of a spatial reference
  • What is a geoprocessing environment setting?
  • Setting geoprocessing environments

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Esri Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
Copyright © 2021 Esri. | Privacy | Legal