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

Fix reprojection when datum transformations are set in project #873

Merged
merged 2 commits into from
Oct 30, 2020

Conversation

wonder-sk
Copy link
Contributor

Input was ignoring custom datum transformations set in QGIS projects which may have been causing subtle shifts in on-the-fly reprojection when the default coordinate operation was different from the preferred one.

@inputapp-bot
Copy link
Collaborator

win-apk: x86_64 (SDK: win-8)

@PeterPetrik
Copy link
Contributor

I will need to do qgis-sdk update anyways, can you create QGIS PR, i would not put this workaround here...

@PeterPetrik
Copy link
Contributor

@wonder-sk are you sure this is required, the context is automatically set when you call QgsQuickMapSettings::setProject, see https://github.com/qgis/QGIS/blob/e7e08fd5045b4fbbec5078ed30de644dabd5ce41/src/quickgui/qgsquickmapsettings.cpp#L55

@wonder-sk
Copy link
Contributor Author

Yes, it is needed and it fixes a bug that was reported to me. Probably the QgsQuickMapSettings::setProject() is called on app startup with QgsProject::instance() when project is still empty, and then never called again (because we use the singleton)

@PeterPetrik
Copy link
Contributor

QGIS PR: qgis/QGIS#39010

wonder-sk and others added 2 commits October 30, 2020 10:02
Input was ignoring custom datum transformations set in QGIS projects
which may have been causing subtle shifts in on-the-fly reprojection
when the default coordinate operation was different from the preferred one.
@PeterPetrik PeterPetrik force-pushed the fix-coordinate-transform-context-ignored branch from 55bae61 to 5b1b6b5 Compare October 30, 2020 09:03
@inputapp-bot
Copy link
Collaborator

win-apk: x86_64 (SDK: win-9)

@PeterPetrik PeterPetrik merged commit 9864fa7 into master Oct 30, 2020
@PeterPetrik PeterPetrik deleted the fix-coordinate-transform-context-ignored branch October 30, 2020 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants