QGIS Server does not respect datum transformation #60216
Labels
Bug
Either a bug report, or a bug fix. Let's hope for the latter!
Projections/Transformations
Related to coordinate reference systems or coordinate transformation
Server
Related to QGIS server
What is the bug or the crash?
GetMap WMS request to QGIS server shows image with features shifted by few meters comparing to map that is shown in QGIS Desktop when I open the same QGS file.
The QGS file contains two vector layers, layer
vaclav-epsg-3857
with four points in EPSG:3857 (green crosses) and layervaclav-epsg-5514
with the same four points in EPSG:5514 (red circles). The project's CRS is EPSG:3857. One of suggested datum transformations is used:If I open the QGS file in QGIS Desktop v3.40.2, I see points from both layers placed in the same location:
However, if I publish the same QGS file to QGIS Server v3.40.2 and send WMS GetMap request, e.g.
four points in
vaclav-epsg-5514
layer (red circles) are shifted by several meters:I expect that points in GetMap request should be in the same location as they are in QGIS Desktop. I guess it's because QGIS Server somehow ignores the selected datum transformation.
I did not find similar bug among open issues. However I found this StackExchange post from 2020 that suggests that the same issue was also with QGIS 3.10: https://gis.stackexchange.com/questions/364744/datum-transformation-in-qgis-server-3-10
Steps to reproduce the issue
vaclav.qgs
in QGIS Desktop. You should see four green crosses and four red circles from placed in the same locations:3. Publish the same QGS file to QGIS Server. You can use containerized QGIS Server (this is how I am using it).
4. Send WMS GetMap request, e.g.
(you probably need to adjust
MAP
parameter value to correct path).5. See the error, four points in
vaclav-epsg-5514
layer (red circles) are shifted by several meters:Versions
All QGS file, QGIS Desktop and QGIS Server are v3.40.2. This StackExchange post from 2020 suggests that the issue was also with QGIS 3.10, so maybe it's quite old: https://gis.stackexchange.com/questions/364744/datum-transformation-in-qgis-server-3-10
Supported QGIS version
New profile
Additional context
No response
The text was updated successfully, but these errors were encountered: