-
-
Notifications
You must be signed in to change notification settings - Fork 144
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
[Bug]: LMWC: 3.7.8 Trying to print in EPSG: 2193 results in flipped coordinates/failed map? #4558
Comments
We do not recommend any non LTR version, QGIS 3.30 is not supported anymore. Can you try on latest QGIS Server 3.34, thanks. |
Ok thanks for the feedback- Is the server version confirmed to be causing it? Or just something to check on the way to fixing it? (The reason I ask is that its taken many months to get Lizmap +QGIS Server upgraded and may be difficult to get server upgraded) |
I don't know. According to the QGIS roadmap, your versions are out dated for more than a year now. A lot of commits have landed in the QGIS source code in between. |
Ok I've updated server version to 3.38.0 and still get the same issue...I think its due to Easting Northing order within the CRS (maybe particular to Southern Hemisphere CRS compared to Northern, or particular to NZTM) not being taken into account or assumed to be Easting-Northern. Examining the coordinate order for EPSG 2193 is Northing first then Easting:
Examining it for, say EPSG 3943 is Easting then Northing
|
This issue is missing some feedbacks. 👻 |
What feedback is needed? |
Some more information below. Im still unsure if this is an issue with how Lizmap generates a print request or how QGIS server interprets that request, but it is related to coordinate order in WMS 1.3.0 (compared to WMS 1.1.1) From the QGIS server documents (https://docs.qgis.org/3.34/en/docs/server_manual/services/wms.html), it indicates that coordinate order has changed. Does this mean that Lizmap must flip its coordinates when generating it's WMS print request for CRS' with flipped coordinate order? "The BBOX parameter is formed like min_a,min_b,max_a,max_b but a and b axis definition is different according to the current VERSION parameter: in WMS 1.1.1, the axis ordering is always east/north in WMS 1.3.0, the axis ordering depends on the CRS authority For example in case of EPSG:4326 and WMS 1.1.1, a is the longitude (east) and b the latitude (north), leading to a request like:
But in case of WMS 1.3.0, the axis ordering defined in the EPSG database is north/east so a is the latitude and b the longitude:
" |
What is the bug? (in English)
My existing projects in LMWC 3.6.3 worked fine using the 'old' basemap method- Users could use the normal print dialogue to print a custom map or an Atlas map. Maps are in New Zealand Transverse Mercator (2193) including the base layers (WMTS)
Now in 3.7.8, I can't print using the print button (atlas prints work fine)- It appears the dataframe is somehow flipped so eastings are northings and northings are eastings which, obviously, positions the dataframe somewhere completely different. This happens if using a basemap layer (within the new basemap group), a basemap WMTS outside the group as a normal layer, or with no basemap at all (just trying to print vectors in 2193)
Steps to reproduce the issue
Setup a project in NZ Transverse Mercator (EPSG: 2193), add some layers and a layout.
Try and print using the print button.
Versions, safeguards, check summary etc
Versions :
List of safeguards :
Check Lizmap plugin
Operating system
Ubuntu Linux 22.04.2
Browsers
Chrome, Microsoft Edge
Browsers version
Chrome: 126.0.6478.114, Edge: 125.0.2535.92
Relevant log output
(updated to reflect that this problem still exists in v3.38.0 of server)
The text was updated successfully, but these errors were encountered: