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

Support grid decoration #5714

Merged
merged 8 commits into from
Oct 8, 2024
Merged

Support grid decoration #5714

merged 8 commits into from
Oct 8, 2024

Conversation

nirvn
Copy link
Member

@nirvn nirvn commented Oct 5, 2024

This pull request adds grid decoration functionality to QField:

vokoscreenNG-2024-10-05_11-55-28.mp4

QField will enable the grid based on the currently opened project's grid decoration settings, which is configured when preparing a project in QGIS. Implementation note: as with other decorations implemented in QField, we do not do a 1-to-1 implementation; in this case, we will take the line or maker color defined in QGIS but we will render the line and marker style our own way (namely non-dashed lines and cross markers).

image

Quite interestingly, relying on QML Shape rendering ended up being much faster than relying on a QQuickPaintedItem and doing the rendering completely on the C++ side of things. That was surprising to me, and serves as a good reminder that QML scenes have excellent rendering speeds!

Sample project showcasing grid:

grid_Sample_project.zip

@qfield-fairy
Copy link
Collaborator

qfield-fairy commented Oct 5, 2024

Copy link
Collaborator

@mohsenD98 mohsenD98 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wonderful wonderful feature 👍💯🔥

@nirvn nirvn merged commit 2000f33 into master Oct 8, 2024
23 checks passed
@nirvn nirvn deleted the grid_decoration branch October 8, 2024 03:49
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.

3 participants