# encoding: utf-8
import os
import arcpy
path=r"D:\data"
for filename in os.listdir(path):
    filename=filename.decode('GBK').encode('utf-8')
    print filename
    if(filename!="polygon"):
        path2=path+"\\"+filename
        outpath=path+"\\polygon\\"+filename+".shp"
        print outpath
        arcpy.FeatureToPolygon_management([path2+"\\"+"边界.shp"],outpath,"", "NO_ATTRIBUTES", "")

目录结构

arcpy 批量将线文件转换为面文件,解决中文乱码

arcpy 批量将线文件转换为面文件,解决中文乱码

相关文章:

  • 2021-10-29
  • 2022-01-09
  • 2022-01-11
  • 2021-11-27
  • 2022-12-23
  • 2021-11-23
  • 2021-08-30
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-01-10
  • 2022-01-02
  • 2022-12-23
  • 2021-11-19
  • 2021-10-17
  • 2022-12-23
相关资源
相似解决方案