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

[Georeferencer] Fix setting target CRS (Fix #59902) #59903

Merged

Conversation

agiudiceandrea
Copy link
Member

@agiudiceandrea agiudiceandrea commented Dec 15, 2024

Description

Fixes an oversight in #47279 where the target CRS set in the Georeferencer's "Transformation Settings" dialog window was not actually saved in the "QGIS3.ini" settings file.

I've remapped the setting from targetsrs in the [Plugin-GeoReferencer] section to georeferencer\last-target-crs in the [app] section for consistency with other settings in the same dialog window. This shouldn't create a backward incompatibility since the previous settings was never actually written in the "QGIS3.ini" settings file.

The setting is stored as a QgsCoordinateReferenceSystem::authid() string.

Fixes #59902.

Side note: the Georeferencer stores it's settings in both the [Plugin-GeoReferencer] section and the [app] section. @3nids, is that intended?

Copy link

github-actions bot commented Dec 15, 2024

🪟 Windows builds

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

🪟 Windows Qt6 builds

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

@agiudiceandrea agiudiceandrea added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Dec 15, 2024
@agiudiceandrea agiudiceandrea changed the title [Georeferencer] Fix setting target CRS [Georeferencer] Fix setting target CRS (Fix #59902) Dec 16, 2024
@agiudiceandrea agiudiceandrea requested a review from 3nids January 2, 2025 09:20
@3nids
Copy link
Member

3nids commented Jan 6, 2025

I believe that the mix of categories was kept for backward compatiblity support. Any cleanup is welcome :)

@3nids 3nids merged commit 9320a45 into qgis:master Jan 6, 2025
54 checks passed
@agiudiceandrea agiudiceandrea deleted the fix-59902-georeferencer-last-target-crs branch January 6, 2025 18:31
JanCaha pushed a commit to JanCaha/QGIS that referenced this pull request Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport release-3_40 Bug Either a bug report, or a bug fix. Let's hope for the latter! Georeferencer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

QgsSetting "/Plugin-Georeferencer/targetsrs" is never written
2 participants