Skip to main content
Commonmark migration
Source Link

I want to remove the M and Z values of the shapefiles, which can be done by using Feature Class to Geodatabase (multiple) and choosing Disabled for M and Z values. The following picture shows the details of the step. [![enter image description here][1]][1]enter image description here

I want to use arcpy to realize this step so I used Copy As Python Snippet and obtained the below code.

arcpy.FeatureClassToGeodatabase_conversion(Input_Features="LinearRef_Travis_LS;Merged_Final", Output_Geodatabase="C:/Users/TL/Desktop/1031/New File Geodatabase.gdb")

The code doesn't show the part of changing the environment setting. I wonder if there is way to remove the M and Z values of shapefiles by using arcpy?

I am using ArcGIS Desktop 10.3.1 Advanced License. [1]: https://i.sstatic.net/gXwgz.png

I want to remove the M and Z values of the shapefiles, which can be done by using Feature Class to Geodatabase (multiple) and choosing Disabled for M and Z values. The following picture shows the details of the step. [![enter image description here][1]][1]

I want to use arcpy to realize this step so I used Copy As Python Snippet and obtained the below code.

arcpy.FeatureClassToGeodatabase_conversion(Input_Features="LinearRef_Travis_LS;Merged_Final", Output_Geodatabase="C:/Users/TL/Desktop/1031/New File Geodatabase.gdb")

The code doesn't show the part of changing the environment setting. I wonder if there is way to remove the M and Z values of shapefiles by using arcpy?

I am using ArcGIS Desktop 10.3.1 Advanced License. [1]: https://i.sstatic.net/gXwgz.png

I want to remove the M and Z values of the shapefiles, which can be done by using Feature Class to Geodatabase (multiple) and choosing Disabled for M and Z values. The following picture shows the details of the step. enter image description here

I want to use arcpy to realize this step so I used Copy As Python Snippet and obtained the below code.

arcpy.FeatureClassToGeodatabase_conversion(Input_Features="LinearRef_Travis_LS;Merged_Final", Output_Geodatabase="C:/Users/TL/Desktop/1031/New File Geodatabase.gdb")

The code doesn't show the part of changing the environment setting. I wonder if there is way to remove the M and Z values of shapefiles by using arcpy?

I am using ArcGIS Desktop 10.3.1 Advanced License.

edited tags
Link
PolyGeo
  • 65.4k
  • 29
  • 114
  • 345
Source Link
Tianxin Li
  • 663
  • 1
  • 5
  • 17

disable M value and Z value by using arcpy

I want to remove the M and Z values of the shapefiles, which can be done by using Feature Class to Geodatabase (multiple) and choosing Disabled for M and Z values. The following picture shows the details of the step. [![enter image description here][1]][1]

I want to use arcpy to realize this step so I used Copy As Python Snippet and obtained the below code.

arcpy.FeatureClassToGeodatabase_conversion(Input_Features="LinearRef_Travis_LS;Merged_Final", Output_Geodatabase="C:/Users/TL/Desktop/1031/New File Geodatabase.gdb")

The code doesn't show the part of changing the environment setting. I wonder if there is way to remove the M and Z values of shapefiles by using arcpy?

I am using ArcGIS Desktop 10.3.1 Advanced License. [1]: https://i.sstatic.net/gXwgz.png