ArcGIS从文件地理数据库里导出成Shp数据

 

 1.ArcGIS从文件地理数据库里导出成Shp数据

import arcpy
from arcpy import env
import os
env.workspace = "E:/US_HistCounties_Shapefile/tuopu-287/topu/tp.gdb/tp_1"
outWorkspace = "E:/US_HistCounties_Shapefile/tuopu-287/out"
fcList = arcpy.ListFeatureClasses()
for shapefile in fcList:
    outFeatureClass = os.path.join(outWorkspace, shapefile.strip())
    arcpy.CopyFeatures_management(shapefile, outFeatureClass)

 

转载自:https://blog.csdn.net/lyd0902/article/details/85069733

You may also like...