3

I'm working with shapefiles and using the ArcPy library. My script is creating a new shapefile based on a join and I want to know how to move the newly joined-shapefile from the environment location to a new folder. Any ideas on how to do this?

4

1 回答 1

2

选项 #1:使用 ArcPy 调用Copy_management,然后调用Delete_management

选项 #2:使用 Python 移动 shapefile。shapefile 只是一组基本名称相同但扩展名不同(.shp、.shx 等)的文件。尝试glob获取属于 shapefile 的文件,然后使用 Python 移动文件

于 2013-10-11T16:32:23.583 回答