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?

有帮助吗?

解决方案

Option #1: use ArcPy to call Copy_management followed by Delete_management.

Option #2: use Python to move the shapefile. A shapefile is just a group of files with the same base name but different extensions (.shp, .shx, etc.). Try glob to get the files that are part of the shapefile, then use Python to move the files.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top