New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrectly uses epsg:2158 for epsg:25829 prj files #27870
Comments
Author Name: Luigi Pirelli (@luipir) Datums are exactly the same. PROJCS["ETRS89 / UTM zone 29N", PROJCS["IRENET95 / UTM zone 29N", |
Author Name: Jorge Rocha (@jgrocha) The (ESRI) WKT representation of each of the mentioned SRS are: EPSG:2158, from http://spatialreference.org/ref/epsg/2158/esriwkt/
EPSG:25829, from http://spatialreference.org/ref/epsg/etrs89-utm-zone-29n/esriwkt/
We don't know which software was used to produce the shapefile, but the *.prj string is none of the above, but it is more similar to the second (EPSG:25829).
It could be just a problem with the original *.prj string, but it isn't. The problem with QGIS does exist. Even if we use the "official" SRS WKT for the EPSG:25829, QGIS still uses the EPSG:2158. To test, download the shapefile, edit the *.prj and paste the above WKT from http://spatialreference.org/ref/epsg/etrs89-utm-zone-29n/esriwkt/. When opened in QGIS, it detects and uses ESPG:2158. Tested with QGIS 3.3.0-Master, GDAL 2.2.3. Using the above "official" WKT strings, gdalsrsinfo -e is able to identify correctly both SRS (using the GDAL#14282 fix). With the _0013_Costa.prj file, gdalsrsinfo -e does not identify the SRS. To reproduce and fix this problem in QGIS SRS detection, I recommend not to use the original *.prj file, but one with the EPSG:25829 WKT representation. |
Author Name: Francisco Puga (@fpuga) Thanks for take to time to check it. I'm not sure which software was used to generate the shapefile, but probably is some automated process from ArcGIS Server. The source of the data is http://mapas.xunta.gal/visores/descargas/ -> Series Cartográficas 10.000 (SHP) |
Author Name: Francisco Puga (@fpuga) This issue seems to be solved in QGIS 3.6. So the ticket can be closed. ¿Must I close the ticket myself? Just to add a bit more info if the problem persists this is the versions and repositories i'm using:
|
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Francisco Puga (@fpuga)
Original Redmine Issue: 20048
Affected QGIS version: 3.2
Redmine category:projection_support
One of the official spanish crs is EPSG:25829 (ETRS 89, UTM Zone 29) and many downloadable shapefiles for public administrations are in this crs. I attach a sample shape.
The .prj has the following contents:
That matches the definitions provided in "epsgio":http://epsg.io/25829.esriwkt and "spatialreference":http://spatialreference.org/ref/epsg/25829/
But, when loaded into QGIS, EPSG:2158 is incorreclty used. But the .prj that defines EPSG:2158 is different as stated in "epsgio":http://epsg.io/2158.esriwkt and "spatialreference":http://spatialreference.org/ref/epsg/2158/
BTW, when manually selecting EPSG:25829 y Layer Properties -> Source and exported as shp, the same original .prj is created, but the with .qpj the layer can be correctly loaded in EPSG:25829.
The text was updated successfully, but these errors were encountered: