Select to view content in your preferred language

Remove M and Z values using ArcObject??

2375
2
07-11-2013 07:20 PM
SongWendong
Emerging Contributor
Is there a way to remove M and Z values from featureclass using ArcObject?

I know I can do it with python to export the featureclass to another gdb by disable M and Z values in enviroments settings.

I just want to know is there a better way to do it without exporting data, and I want to do it using C# and ArcObject.

I cannot find the right interface.

Any helps?
0 Kudos
2 Replies
DuncanHornby
MVP Notable Contributor
If your source dataset has ZM values (even if they are not set) and you want to drop these from the entire dataset you will have to export the dataset to a new FeatureClass which does not support ZM values. If you want to achieve this in ArcObjects the easiest way is probably to call the geo-processing tool using the execute method on the IGeoProcessor object.
0 Kudos
WeifengHe
Esri Contributor
In ArcObject, there are IZAware and IMAware interfaces, you can call DropZs and DropMs to reset the Z values and M values, or set ZAware or MAware properties to false.  These do not apply to feature class, so you have to go through each feature and get the geometry.

http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/IZAware_Interface/002m00...
http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/IMAware_Interface/002m00...
0 Kudos