-
-
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
Datum transformation using custom gsb grid for WMS Layer in QGIS Server does not work #43072
Comments
I assume that importing the same layers directly in QGIS would have the same effect. If this is the case then yes, it is highly probable that the changes of Proj are the root cause. You could just reproject the layer ( in proj4) to a supported proj6 CRS or correct the georeferencing. Otherwise if the problem is only with the server, this may come from QGIS. |
Thanks for the response! |
Further detection and declaration: "usual" transformations are working. E.g. a datum transformation of a raster with epsg:31468 (gauss kruger zone 4) is loaded with 25832 in correct position. It doesn't work if a custom gsb grid placed in /usr/share/proj should be used. |
Fixes qgis#43072 --- well, not really a fix, but without this information in the logs life is harder.
There is no bug really but you couldn't have possibly known how to fix the issue because the server didn't tell you anything. After downloading and installing the required grid file https://cdn.proj.org/de_adv_BETA2007.tif in the "user" |
Hey @elpaso, thank you for your response and clarifying! We want to use a different grid file (NTv2gridTH.gsb), but I think the procedure will be the same. Something is still not working on our system but I have to figure this out by my own. With your message I am knowing now, that qgis server 3 should handle this correctly and it seems to be a configuration problem now. |
Fixes #43072 --- well, not really a fix, but without this information in the logs life is harder.
Hello there,
we have a problem using datum transformations within QGIS Server 3.16 on Ubuntu 20.04 (Focal Fossa). Within a qgs project with layers of different projections (EPSG: 3397 and EPSG: 25832) there is no datum transformation applied on these layers.
There are others with the same issue (https://gis.stackexchange.com/questions/364744/datum-transformation-in-qgis-server-3-10) but there are no replies yet.
It works with an older QGIS Server 2.18 whe have running.
On the newer one everything is set up like described in this thread: https://www.mail-archive.com/qgis-user@lists.osgeo.org/msg35445.html. The corresponding NTv2gridTH.gsb file is placed in the proj folder /usr/share/proj, there is an entry for the transformation within the srs.db and the standard transformation is defined in the apache configs.
But unfortunately this does not work on the newer QGIS 3.16 anymore. The function was implemented here:
QGIS/src/core/qgsmaprenderer.cpp
Line 1300 in 28c0380
The hope was, that the QGIS Server recognizes a standard transformation of a project file, which can be set in project settings within "project - settings - transformation" (https://www.mail-archive.com/qgis-user@lists.osgeo.org/msg44456.html), but this setting has not effect on the interpretation of the QGIS Server.
Does the problem corresponse to changes with the use of PROJ6 since QGIS 3.10? (Another issue but mentioned here: https://www.mail-archive.com/qgis-user@lists.osgeo.org/msg45441.html)
Two raster layers with different projections loaded via wms from the qgis server:
![example](https://user-images.githubusercontent.com/30999402/116996671-14ff7280-acdc-11eb-92ae-52a702d023de.png)
Here is a qgs-project with two included raster layers with the named projections to test this on an own qgis server:
https://cloud.jena.de/index.php/s/0YWh2ZXE3MEEfjR
I would appreciate any help. Thanks!
The text was updated successfully, but these errors were encountered: