-
Notifications
You must be signed in to change notification settings - Fork 8
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 depth option to 'Create groups based on directory names' #24
Comments
That's a nice suggestion. Sometimes I've also ended up with too many subgroups. There might be many possibilities here, @cratcliff. |
@gacarrillor before I found your plugin I had a script which would loop through and load known extensions. To help explain look at the following picture which shows the folder/data structure on the left and the resulting QGIS layer groupings on the right. I used the following code with depths of 1 & 3 for the shapefiles and 1 & 4 for the tif files to produce the groupings on the right.
|
In your example, what happened to On the other hand, how should we handle files that lie in between of the specified depths? For instance, let's imagine that SpatialData had a Shapefile (out of And finally, but very related, what if |
@gacarrillor sorry I forgot the On all your other points I would be putting the layers into the parent group. If there isn't a parent group then just load the layer. Using the updated code above if I have updated the file structure and created couple of other variations as shown in the picture. The order of the layers will vary depending on how the |
Now, that makes sense. And I think it is the expected behavior. Consider joining efforts and contributing in terms of code (as a Pull Request, since you have a script already) or even funding the feature. |
Is it possible to add a depth option to the 'Create groups based on directory names' in the configuration tab.
This would enable the user to control how many nested groups are created. For example, I have a directory structure like MyProject/Site1/project_data/Terrain. A depth option of 2 would create a single group called 'Site1' .
I can then quickly load data for all my sites without excess subgroups.
The text was updated successfully, but these errors were encountered: