Question

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?

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top