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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

agiudiceandrea
Copy link
Contributor

@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. Is this 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport queued_ltr_backports Queued Backports 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
1 participant