qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.23k stars 2.95k forks source link

Min/Max scale pastes inversely in SLD style #55101

Open wojtek19022 opened 9 months ago

wojtek19022 commented 9 months ago

What is the bug or the crash?

I want to define min and max scale when the simple label can be displayed in SLD style and these scales assign inversely in a file cofiguration

Steps to reproduce the issue

  1. Labels -> Single Labels -> cofigure size, buffer. Then go to the rendering tab -> enabled first checkbox and set min scale - 0, max scale 300000.
  2. clicked apply, and save.
  3. clicked style -> save style -> save file as SLD and chose location.
  4. loaded style in geoserver
  5. SLD file code looks like this: image

Versions

3.22.10

Supported QGIS version

New profile

Additional context

No response

nirvn commented 5 months ago

@wojtek19022 , I suspect this is not a bug, but a confusing QGIS UI :)

For labeling, the minimum and maximum scale dependency logic is inverted. I believe the SLD should be working fine on your geoserver.