-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Add expression functions for returning User and Project Bookmark #64367
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
base: master
Are you sure you want to change the base?
Conversation
…e them available in expressions
…expression naming standards (x_min instaed of xMin etc.)
… include group and detailed extent information
🪟 Windows Qt6 buildsDownload Windows Qt6 builds of this PR for testing. 🍎 MacOS Qt6 buildsDownload MacOS Qt6 builds of this PR for testing. |
|
Hi @nirvn I am just now seeing that you also asked me to name the functions |
|
The QGIS project highly values your contribution and would love to see this work merged! Unfortunately this PR has not had any activity in the last 14 days and is being automatically marked as "stale". If you think this pull request should be merged, please check
|
Description
Replacing #63613
As suggested by @nirvn the PR allows access to both Project and User(profile) bookmarks in the expression engine as functions:
The returned maps\objects are structured to allow access to the following properties of the returned bookmark:
5.1. x_min
5.2. y_min
5.3. x_max
5.4. y_max
The idea behind the changes are to allow users to use bookmark properties to set specific data driven overrides as well as display them.
The changes are:
QgsProjectaddedGetNamedUserBookmarkandGetNamedProjectBookmarkto return a named bookmark and registered both underQgsProject::createExpressionContextScope()QgsExpressionContextUtilsunderQgsExpressionContextUtils::registerContextFunctionsresources/function_help/jsonBuilt successfully without issues on Windows 11 with QT6 using OSGeo4W
qgis-qt6-dev-depsand MS Visual Studio 2022.