-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
Button for adding all layers of a Theme #89
Comments
Hi, I think it's a good idea to have this kind of feature. We were thinking what would the best option to provide this feature :
Option 3 needs to have to dock opened before. |
Side note, but I'm very used to open the "Browser" panel in QGIS to open new files, browser my postgis etc. I was wondering to have a "PgMetadata" item in this tree, with maybe a tree showing all theme ? and then all layers (with the name formatted nicely from the pgmetadata table). I know it's redundant with the "Postgis" item, but it's one is ordered by schemas and then by table name. The PgMetadata one would be more "organized" according to pgmetadata table. |
A / EXPLORER B / DATA SOURCE MANAGER C / LOCATOR D / OTHER IDEA ? TOOL VIA PROCESSING ? OTHER ? |
Explorer sounds like a good idea, as this is my first place I turn to for finding and adding stuff. There is a filter tool, though it doesn’t expand the sections it finds results in. I use the locator mostly for search+add or seach+pan/highlight operations. Putting the „add theme“ there, too, feels a bit overloaded to me. I added only a button to the dock (with subsequent dialogs) because it was less work. I was too lazy to build a new UI component in the designer for the proof of concept. ;-) @image80 I originally tried to add the functionality to the processing toolbox, as I had a bit more experience in that area. But I realised that adding layers from there didn’t work as easily as from the dock code. |
I’ve tried adding the functionality to the Add Layers menu. This was very straightforward. However, I have no clue about how to add a new item to the browser panel. The functions seem to be there, but I can’t figure it out, and I haven’t found any plugins I could use as an example. |
Mergin, Geonode are plugins adding custom item in the browser.
|
Thank you for the pointers to the plugins! I hope I can have a detailed look in the next few days. I had already found QgsBrowserModel, but couldn’t quite understand how it works. I managed to quickly crash Qgis, though. :-D I just need some time to grok the browser model. ;-) |
I’m not sure if I understood the goal of the Themes field correctly, but during my evaluation of the plugin, this use case came up:
I have created themes for topics and spatial divisions like
and assigned layers to them.
So when I need to get started with a map e.g. for the State of Brandenburg, I would like to add the themes “base information for Brandenburg“ and „hydrogeology Brandenburg“ to have the layers I usually need conventiently loaded all at once.
I have added a button to the dock, which offers me a list selection of database (if more than one DB is connected) and of the available themes. When I select a theme, all the layers in that theme get added as a layer group.
Is this a use case of general interest? If so, I can prepare a PR.
The text was updated successfully, but these errors were encountered: