I have a QGIS 3.12 project which covers a large area and has 25 layers of different types. Each layer has its own saved style. Occasionally I am required to create a "sub-project" which forms a smaller area of the large project. After creating the clipping polygon to define the boundaries of the smaller project, I use the Clip Multiple Layers plugin to create 25 clipped layers which come into existence with some type of default styling. Is there some way to avoid the time-consuming task of applying the saved styles individually to each of the 25 clipped layers?
1 Answer
Ten days ago I sent a pull request to the https://github.com/Taknok/Qgisplugin-ClipMultipleLayers repo on GitHub with some enhancement and the request was accepted and on 14th of March a new version was released which contains my improvements. In the 3.1.0 version there is a Save vector styles (qml) option.
If you select Save vector styles option a .qml file will be save for each layers with the same name and into the same folder. The styles from this file will be applied when you open the clipped layer in QGIS.
-
Great solution, but unfortunately when I try to upgrade the ClipMultipleLayers plugin, I get error message "Couldn't load plugin 'ClipMultipleLayers' due to an error when calling its classfactory() method"– Bill CCommented Mar 26, 2020 at 5:44
-
I've just installed from the Plugin manager and it works without any issue. Which QGIS version do you use?– ZoltanCommented Mar 26, 2020 at 17:03
-
Re-installed plugin successfully, ran plugin, perfect result. Full marks to developer for saving me so much work.– Bill CCommented Mar 27, 2020 at 6:44
-
1