Skip to content

[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
geosolutions-it:2026.02.xxfrom
rowheat02:backportCRScrash
Open

[Backport 2026.02.xx] Fix #12627 CRS change crashes with grid-based projections when layer resolution limits are configured#12762
rowheat02 wants to merge 1 commit into
geosolutions-it:2026.02.xxfrom
rowheat02:backportCRScrash

Conversation

@rowheat02

@rowheat02 rowheat02 commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

…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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants