Dan Patterson
That is I want to do with 190 files. I did with one shp example, its name is "Rod_inter_Masa_156_16.shp"
I want select polygons ❤️ ha, them use eliminate tool, by merging them with neighboring polygons that have the largest area or the longest shared border and finally save the result in a folder.
Doy you know how can I automate it?
Thank you
# Import arcpy module
import arcpy
# Local variables:
Rod_inter_Masa_156_16 = "Rod_inter_Masa_156_16"
Rod_inter_Masa_156_16__2_ = "Rod_inter_Masa_156_16"
Rod_inter_Masa_156_16_Elimin = "C:\\Users\\info\\Documents\\ArcGIS\\Default.gdb\\Rod_inter_Masa_156_16_Elimin"
prueba_shp = "C:\\Prueba_subrodal2\\prueba.shp"
# Process: Select Layer By Attribute
arcpy.SelectLayerByAttribute_management(Rod_inter_Masa_156_16, "NEW_SELECTION", "\"Superfic_1\" <= 3")
# Process: Eliminate
arcpy.Eliminate_management(Rod_inter_Masa_156_16__2_, Rod_inter_Masa_156_16_Elimin, "LENGTH", "", "")
# Process: Copy Features
arcpy.CopyFeatures_management(Rod_inter_Masa_156_16_Elimin, prueba_shp, "", "0", "0", "0")