[Backport 2026.02.xx] Fix #12627 CRS change crashes with grid-based projections when layer resolution limits are configured - #12762
Open
rowheat02 wants to merge 1 commit into
Conversation
…limits are configured geosolutions-it#12627 (geosolutions-it#12669) * avoid target CRS transform in resolution conversion * Fix geosolutions-it#12627 - convert layer resolution limits by units on CRS change The converted limits were snapped to a resolution of the target CRS, but getResolutions returns the resolutions configured in mapOptions.view for any SRS, which on the way back is the previous CRS ladder: metres ended up snapped onto degrees. Convert through the meters-per-unit ratio instead, the same one the map view uses to keep the scale, and drop the snap so the conversion is reversible. --------- Co-authored-by: Lorenzo Natali <lorenzo.natali@geosolutionsgroup.com>
12 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of https://github.com/geosolutions-it/MapStore2/pull/12691 to 2026.02.xx.
Fixes #12627