-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Add Processing algorithms to deal with metadata #59411
Conversation
@alexbruy A documentation ticket will be opened at https://github.com/qgis/QGIS-Documentation when this PR is merged. Please update the description (not the comments) with helpful description and screenshot to help the work from documentors. Thank you! |
128c6c6
to
8af31a6
Compare
This pull request has been tagged for the changelog.
You can edit the description. Format available for credits
Thank you! |
🪟 Windows buildsDownload Windows builds of this PR for testing. 🪟 Windows Qt6 buildsDownload Windows Qt6 builds of this PR for testing. |
@alexbruy This is great! Thank you! (thinking aloud) Some other ideas I've had for metadata related algorithms are:
That'd address most of the metadata related processing needs. The missing remaining bit then would be some mechanism for auto-copying input layer metadata to generated layers, eg when running tools directly from the toolbox. I think to handle this we'd need API to control "input parameter to copy output layer metadata from" for each individual output that an algorithm generates, so that we can correctly copy the metadata from the correct source when an algorithm has multiple layer input parameters. And then finally some mechanism to auto-append a history entry for generated layers summarising the processing tool and parameters used to generate that layer... 🥳 |
@nyalldawson I already was thinking about algorithm to combine metadata, your other suggestions are also valuable. I will add these new tools in the followup pull-request. As for the API to add history entries to the metadata and copy metadata from input to output this would be really nice to have and if I recall correctly we even have a ticket about it. |
@alexbruy |
Description
Add a few native algorithms to deal with layer metadata:
When copying and applying metadata it is possible to set metadata as a default metadata for a layer.
Supersedes #59375.