I need to rename a shapefile.
Is it ok to simply use Windows Explorer to manually rename each of the three related files that comprise the shapefile?
I am using QGIS.
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It only takes a minute to sign up.Sign up to join this community
Yes, it is - if you are sure there are no more files associated with it (e.g. .prj file). The associated files have always the same name (prefix).
It is safest and best practice to rename shapefiles in an automated fashion to avoid errors in any of the associated files. You can use the Windows command line
ren function and a wildcard
* to easily rename shapefiles and all their associated files. Keep in mind this will rename the original. For example:
ren C:\path\to\your\shapefile* renamed_shapefile*
Alternatively, you can copy your shapefile and all the associated files to a new location using the
copy C:\path\to\your\shapefile* C:\path\to\another\directory\renamed_shapefile*