ArcGIS for Desktop

  • Documentation
  • Pricing
  • Support

  • My Profile
  • Help
  • Sign Out
ArcGIS for Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS for Desktop

A complete professional GIS

ArcGIS for Server

GIS in your enterprise

ArcGIS for 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
  • Pricing
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

Help

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • More...

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, 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_flagExplanation

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.

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
  • An overview of geoprocessing environments
  • Environment levels and hierarchy
  • Setting geoprocessing environments
Feedback on this topic?

ArcGIS for Desktop

  • Home
  • Documentation
  • Pricing
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS for Desktop
  • ArcGIS for Server
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Insiders Blog
  • User Conference
  • Developer Summit
Esri
© Copyright 2016 Environmental Systems Research Institute, Inc. | Privacy | Legal