문제

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