Pregunta

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?

¿Fue útil?

Solución

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.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top