[QGIS-Developer] Apply style to all selected layers and groups

Sebastian Gutwein bas at rdgland.com
Thu Jan 19 06:35:44 PST 2023


Calvin,
If I have a lot of files that I want to coordinate the style of I put them
in a group. Then I change one layer and do the copy style trick and then
paste it on to the group. This will apply that style to all the layers in
the group that are compatible.

As far as coordinating styles between layers rather than being able to
select multiple layers I would like to see the option to be able to link
the symbology to a style in the style manager. That way if you change the
style in the style manager  there it changes it for all layers that have
that style set.
-Bas

On Thu, Jan 19, 2023 at 9:17 AM C Hamilton via QGIS-Developer <
qgis-developer at lists.osgeo.org> wrote:

> The other aspect of this that I didn't mention is that my users create
> their own styles which they save ("Save Symbol") under their own tags. This
> is all available under the "Layer Styling" panel. When they click on one of
> their styles they would like it applied to all selected layers, but because
> this is under "Layer Styling" it is only applied to one layer.
>
> Calvin
>
> On Thu, Jan 19, 2023 at 9:03 AM Richard Duivenvoorde <rdmailings at duif.net>
> wrote:
>
>> Ah, sorry now I understand.
>>
>> Yes that would be cool, so instead of the dropdown in the Layer Styling
>> panel, you would have an option to select more layers...  and apply to all
>> of those the changed you do in the layer styling panel.
>>
>> One thing I'm thinking of, is what to show as 'current' styling after
>> selecting 5 (different styled) layers...
>>
>> Something like: the one in the dropdown is the 'master'? So as soon as
>> you add other layers to the selection they get styled (after confirmation?)
>> to the same style as the Styling panel is showing for the 'master'?
>>
>> Anyway: nice idea! Needs some UI thinking though, to not make things
>> overly complex for 'normal' use :-)
>>
>> Richard
>>
>>
>> On 1/19/23 14:54, C Hamilton wrote:
>> > Richard,
>> >
>> > We tend to operate on older versions of software so I see that the
>> latest has this, but what 3.28 does not do is when you are using the Layer
>> Styling panel, it only works with one layer. Once that layer is set then
>> you can copy and paste it to the rest, but it would be really nice if you
>> didn't need the additional copy and paste step.
>> >
>> > Thanks,
>> >
>> > Calvin
>> >
>> > On Thu, Jan 19, 2023 at 8:37 AM Richard Duivenvoorde <
>> rdmailings at duif.net <mailto:rdmailings at duif.net>> wrote:
>> >
>> >     Hi Calvin,
>> >
>> >     If I load a layer, duplicate it twice more.
>> >     Restyle the first layer,
>> >     Copy Style (of that first one)
>> >     Then select both other layers in the layer list (select click)
>> >     Then Paste Style
>> >     Then both other layers get that style?
>> >
>> >     That is not what you mean?
>> >     Or do you want to have some ui for that?
>> >
>> >     One this I personally miss, is the copy pasting (mostly of colors
>> or categories) from one kind of geometry type to another...
>> >     I know do that (if I have pretty complex styles), by hand by
>> editing the qml files...
>> >
>> >     Regards,
>> >
>> >     Richard Duivenvoorde
>> >
>> >
>> >     On 1/19/23 14:20, C Hamilton via QGIS-Developer wrote:
>> >      > I keep having users come to me and ask why QGIS does not allow
>> the ability to apply a style to all selected layers and groups of layers.
>> As far as I know this does not exist. I added a routine to do this in the
>> Density Analysis plugin, but this capability really should be a part of the
>> core Layer Styling - perhaps with a checkbox that says to apply to all
>> selected layers. This would need to understand that it is only applied to
>> layers that match the layer type or either the first or last selected layer.
>> >      >
>> >      > Are there any development efforts to apply styles to all
>> selected layers?
>> >      >
>> >      > Thanks,
>> >      >
>> >      > Calvin
>> >      >
>> >      > _______________________________________________
>> >      > QGIS-Developer mailing list
>> >      > QGIS-Developer at lists.osgeo.org <mailto:
>> QGIS-Developer at lists.osgeo.org>
>> >      > List info:
>> https://lists.osgeo.org/mailman/listinfo/qgis-developer <
>> https://lists.osgeo.org/mailman/listinfo/qgis-developer>
>> >      > Unsubscribe:
>> https://lists.osgeo.org/mailman/listinfo/qgis-developer <
>> https://lists.osgeo.org/mailman/listinfo/qgis-developer>
>> >
>>
>> _______________________________________________
> QGIS-Developer mailing list
> QGIS-Developer at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>


-- 
___________________________
Sebastian "Bas* " Gutwein
*rhymes with Josh

Regenerative Design Group
1 Chevalier Ave
Greenfield, Ma 01301
Web: regenerativedesigngroup.com
(631) 241-1018

*Look close, think big, make change. *
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20230119/f6e9e172/attachment.htm>


More information about the QGIS-Developer mailing list