import arcpy
tile = 'T55GDN'
# Local variables:
ShixuForestaddniandushp = 'E:/Atest/' + tile + '/DForest/xxx.shp'
Export_Output04_shp = "E:\\Atest\\T55GDN\\Iboundary\\Export_Output04.shp"
# Process: Sort
arcpy.Sort_management(ShixuForestaddniandushp, Export_Output04_shp, "area DESCENDING", "UR")
Arcpy-对属性表按面积进行排序
最新推荐文章于 2026-06-19 09:35:58 发布
这段代码演示了如何使用ArcPy的Sort管理器对shapefile进行排序,输入文件为'E:/Atest/T55GDN/DForest/xxx.shp',输出文件为'E:AtestT55GDNIboundaryExport_Output04.shp',排序依据是'area'字段,按降序排列。

7464

被折叠的 条评论
为什么被折叠?



