-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
QGIS writing out incorrect .prj file #16341
Comments
Author Name: dr - (dr -) Confirm such behavior on latest master. |
Author Name: Chris Matthews (Chris Matthews) I am also having trouble with the .prj file QGis is creating when working with 3857. I'm using Qgis 2.0.1 |
Author Name: Etienne Tourigny (@etiennesky) confirmed. look like the ogr provider needs updating... probably too late to include this in 2.2 though! At least there is a workaround. |
Author Name: Etienne Tourigny (@etiennesky) Fixing this would require fixing QgsVectorFileWriter() and copying the .qpj file to .prj file. |
Author Name: Jürgen Fischer (@jef-n) Etienne Tourigny wrote:
Producing the .qpj is a workaround because OGR converts the SRS to ESRI WKT for the .prj (ie. "OSRMorphToESRI()":http://www.gdal.org/ogr/classOGRSpatialReference.html#aac948450b15fa3d8814ab440b9f705b7) and that's not lossless. QGIS prefers the .qpj with the original information over the .prj. Keeping the original information is the whole point of the .qpj. |
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Giovanni Manghi (@gioman) End of life notice: QGIS 2.18 LTR
|
Author Name: Gavin Fleming (@gubuntu)
Original Redmine Issue: 7368
Affected QGIS version: master
Redmine category:projection_support
QGIS 1.9 nightly build
Save a layer as a shapefile in EPSG 3857 and different prj and qpj files are written out. The prj file is inadequate. I picked this up when using the output shapefile as a gdalwarp cutline and the output raster cut was shifted by several kilometres. gdalwarp reads the prj file, not the qpj file. I renamed the qpj file to .prj and this solved the problem.
.prj:
.qpj:
The text was updated successfully, but these errors were encountered: