Skip to content

CRS change crashes with grid-based projections when layer resolution limits are configured #12627#12669

Open
rowheat02 wants to merge 1 commit into
geosolutions-it:masterfrom
rowheat02:muricaResolutionFix
Open

CRS change crashes with grid-based projections when layer resolution limits are configured #12627#12669
rowheat02 wants to merge 1 commit into
geosolutions-it:masterfrom
rowheat02:muricaResolutionFix

Conversation

@rowheat02

Copy link
Copy Markdown
Contributor

Description

This PR prevents CRS switching from failing for layers with resolution limits when the target CRS uses a datum grid. The resolution anchor now remains in the source CRS, uses the current map center for deterministic conversion, and snaps converted limits to the nearest target CRS resolution.

Please check if the PR fulfills these requirements

What kind of change does this PR introduce? (check one with "x", remove the others)

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other... Please describe:

Issue

What is the current behavior?

#12627
The CRS change fails with a transformation error.

What is the new behavior?

No crash when changing the CRS on the map with resolution configured for some layers

Breaking change

Does this PR introduce a breaking change? (check one with "x", remove the other)

  • Yes, and I documented them in migration notes
  • No

Other useful information

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.

CRS change crashes with grid-based projections when layer resolution limits are configured

2 participants