3

I have 2 projects, with data from different regions and with different EPSG, 1 with EPSG 31983 and the other with EPSG 31984, according to the folder structure shown below, in Windows explorer.

enter image description here

enter image description here

In both projects I have the same folder structure and file names. I created a QGZ project in QGIS 3.12, using project data 01 (EPSG 31983), included the data (vector and raster), defined the project's symbology and visual coordinate system as being EPSG 4674 (figure below).

enter image description here

I saved the project with the name “Project.qgz”). I went back to Windows explorer and copied the QGZ to project 2 folder (EPSG 31984) Crtl + c / Crtl + v.

enter image description here

I opened QGIS again, now choosing the QGZ project that I previously copied into the folders of project 2 (EPSG 31984) The project opened normally, however when reading the two themes QGIS kept the EPSG of the previous themes (project 1), or that is, he fetched the data correctly, applied the symbology but kept EPSG 31983 for project 1 not updating to EPSG 31984 for project 2.

enter image description here

enter image description here

I need to apply this example to several projects, just by copying and pasting the “.QGZ” from one folder to another.

How do I get QGIS to automatically update the EPSG of the data being presented, in the same way as it updates the symbology for the new data being loaded?


The shapefile file inside the folder 'Project EPSG 31984' is set to EPSG: 31984. I checked it. I am referring to CRS. The problem is that QGIS is memorizing the EPSG of the shapefile within the QGZ project, and then, when I make a copy of the QGZ project (copy / paste) to the other project, QGIS does not change the EPSG when reading the new shapefile. I am trying to show that when copying the .QGZ project from one folder to another, QGIS updates all data to contain the shapefiles in the new folder, however, it does not update the coordinate systems (CRS), causing problems. There any suggestion to solve this?

  • The shapefile in the 'Project EPSG 31984' folder seems to be defined in EPSG:31983 CRS. When you say "with data from different regions and with different EPSG" , are you referring to the CRS of the data or the name of the folder? – Gabriel De Luca Mar 1 at 1:10
  • Gabriel. I completed the text. – Denilson Mar 2 at 10:41
  • I don't think I was able to explain my doubt properly. I think it may be a problem in reading the data in Qgis. Other example: I have a shapefile with the name “Diques.shp” it has an EPSG 32721 mapping system. I enter QGIS 3.12, add this shapefile, save the project with the name “teste.qgz” I right click on the shapefile “Diques.shp” and I export it to EPSG 32722 with the name “Diques2.shp”. – Denilson Mar 5 at 13:10
  • I exit QGIS, delete the file "Diques.shp" and rename the file "Diques2.shp" to "Diques.shp", that is, I replace the original shapefile in EPSG 32721 for the shapefile EPSG 32722. I enter QGIS again and open the “teste.qgz” project. I open the Properties menu, "Source" option of the “Diques.shp” layer. My expectation was that QGIS, when reading the “Diques.shp” layer, would update to EPSG 32722. But it maintains EPSG 32721. – Denilson Mar 5 at 13:10
  • A shapefile is not a .shp file. The projection of a shapefile is on a .prj file, so if the Diques.prj file says EPSG:32721, the Diques shapefile is in EPSG:32721. Also, I'm not sure, but I think that QGIS write another file with the projection to not use the ESRI WKT definition stored in a .prj file. Try to find information about that to use shapefiles in QGIS, or use GeoPackage layers. – Gabriel De Luca Mar 5 at 17:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.