Skip to content
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

[Backport release-3_40] qgswmsgetcapabilities: Use float format for min/max scale parameters #60090

Merged
merged 1 commit into from
Jan 9, 2025

Conversation

qgis-bot
Copy link
Collaborator

@qgis-bot qgis-bot commented Jan 9, 2025

Backport #60058
Authored by: @ptitjano

`MinScaleDenominator` and `MaxScaleDenominator` string are created
from a `QString::number` call with the default parameters. In that
case, the most concise format is used. This can result in the
scientific notation being used for very big or small numbers.

With this change, these parameters are now always displayed in a float
format. Reasons for this change:
- this might prevent a loss of precision for very small or big numbers
- this output is not supposed to be human readable so it does not
 matter if is not concise
- this is the logic used by a lot of WMS servers, for example arcgis
 server
@github-actions github-actions bot added this to the 3.40.3 milestone Jan 9, 2025
Copy link

github-actions bot commented Jan 9, 2025

🪟 Windows builds

Download Windows builds of this PR for testing.
Debug symbols for this build are available here.
(Built from commit b52012e)

🪟 Windows Qt6 builds

Download Windows Qt6 builds of this PR for testing.
(Built from commit b52012e)

@rouault rouault merged commit 7d48298 into release-3_40 Jan 9, 2025
35 checks passed
@rouault rouault deleted the backport-60058-to-release-3_40 branch January 9, 2025 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants