I am currently having issues with the Eliminate Polygon Parts tool (Cartography Toolbox). I have an Advanced License and ArcGIS Desktop 10.6.1. I run the tool on a polygon feature class, in order to delete features < 20 m2. The resulting polygons look fine. However, there is quite a problem with the attribute table of the feature class - it gets messed up completely.
I have 4 fields (int_300 / tiefe_300 / pq_id / p_typ), containing coded information (short integers). Some of the fields and information was added using the arcpy.AddField_management()
and arcpy.da.UpdateCursor()
tools. The information in the fields need to remain the same for further processing, but they don't. Somehow the "shape_length" and "shape_area" fields get moved to "pq_id" and "p_typ" respectively, "tiefe_300" just gets lost / set to zeros. See screenshots below.
I have found Shifted columns after Eliminate Polygon Part at GeoNet about a similar issue, but it has no solution on offer.
I suspect that there somehow exists a dependency on the order of the fields... but since I add the fields during processing I cannot do much about the original order.
How can I solve this problem?
eliminiate polygon part
tool works fine, without altering the columns. This is weird. How do I reorder the columns "in place"?