-1

Is it possible to change the directory of a layer's source file without deleting and re-importing the layer?

2
  • Are you after any method (GUI/programmatically), and any version of QGIS?
    – nmtoken
    Jun 18 '19 at 10:09
  • Preferably GUI and latest version. I'll try romainbh's answer next time the issue presents itself. Jun 18 '19 at 12:32
3

Yes, with the plugin Change datasource, it's the easiest way to change the path of a layer in QGIS.

Copy the layer file (or multiples files in the case of a shapefile) into the new directory and then open your project and change the source with the plugin.

1

Not the answer you're looking for? Browse other questions tagged or ask your own question.