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

[composer] Allow syncing pictures to true north (fixes #192) #3618

Merged
merged 2 commits into from
Oct 18, 2016

Conversation

nyalldawson
Copy link
Collaborator

Previously pictures could only be synced to grid north, which can be totally wrong for many CRSes (especially in polar areas). To fix this users are now given a choice of grid or true north, and can also
enter an optional offset to apply if eg magnetic north is instead desired.

When synced to true north the bearing is calculated using the centre point of the linked map item.

This fix was sponsored by the Norwegian Polar Institute's Quantarctica project (http://quantarctica.npolar.no) and coordinated by Faunalia.

Previously pictures could only be synced to grid north, which
can be totally wrong for many CRSes (especially in polar areas)

Users now are given a choice of grid or true north, and can also
enter an optional offset to apply if eg magnetic north is instead
desired.

When synced to true north the bearing is calculated using the
centre point of the linked map item.

Fix qgis#192, qgis#4711

This fix was sponsored by the Norwegian Polar Institute's
Quantarctica project (http://quantarctica.npolar.no) and
coordinated by Faunalia.
@nyalldawson
Copy link
Collaborator Author

I also should note that this fixes a bug where synced north arrows are not connected to the correct slot when a project is restored, causing different rotation behaviour with restored projects vs newly created composer pictures items.

@nirvn
Copy link
Contributor

nirvn commented Oct 18, 2016

@nyalldawson , nice; any plans to add true-north to the north arrow canvas decorator?

@nyalldawson
Copy link
Collaborator Author

@nirvn it's out of spec for this work, but should be quite straightforward to adapt the composer north arrow stuff to suit....

@nyalldawson nyalldawson merged commit 89cc645 into qgis:master Oct 18, 2016
@nyalldawson nyalldawson deleted the true_north branch October 26, 2016 05:54
@timlinux
Copy link
Member

Maybe we could use https://www.ngdc.noaa.gov/geomag/calculators/help/declinationHelp.html to get the declination

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants