-
-
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
WMS legend symbol missing for "Meters at Scale" symbology and projected CRS #50366
Comments
@domi4484 : could you have a look on that? |
I checked out the code a little, but did not finished. Meanwhile I note down conclusions:
Now my head explodes a little bit, and I have to stop working. Next step would be:
Maybe the division-instead-multiplication thingy is a bug that needs to be fixed and everything works well, but not sure ATM.
|
ShortThe issue is that we do not set the CRS on the This can be solved by setting the corrects CRS, like e.g.
But not sure if we can do that... TL:DR - Backgroundinfo
|
… available to handle properly symbols that are defined as meters at scale. This fixes qgis#50366
… available to handle properly symbols that are defined as meters at scale. This fixes qgis#50366
…correct CRS and care about meter based crs. This fixes qgis#50366
…correct CRS and care about meter based crs. This fixes #50366
…correct CRS and care about meter based crs. This fixes #50366
…correct CRS and care about meter based crs. This fixes qgis#50366
…correct CRS and care about meter based crs. This fixes #50366
What is the bug or the crash?
The legend symbol of a vector layer having a meters at scale symbology and rendered as WMS via QGIS Server is missing if using a projected CRS.
A workaround has been found when setting Project Properties > QGIS Server > WMS Capabilities > Default scale for legend as > 1, like 10:1. In that case, the legend symbol of the WMS layer is shown.
Is this supposed to be normal behaviour? Standard scales that can be chosen from the dropdown do not include scales >1:1, so I guess it's not normal.
For WGS84, it's "Default map units per mm in legend" that can be defined. Is it possible that even when it's saying "Default scale for legend" for other CRS, the value entered is still translated as map units per mm?
Steps to reproduce the issue
Redo the same from point 5 on, setting the Default scale for legend to something >1:1
Versions
<style type="text/css"> p, li { white-space: pre-wrap; } </style>Supported QGIS version
New profile
Additional context
No response
The text was updated successfully, but these errors were encountered: