[Qgis-user] Applying multiple styles to the same layer
Karl Magnus Jönsson
Karl-Magnus.Jonsson at kristianstad.se
Tue Jan 7 00:33:00 PST 2020
Hi,
Another option is to add named styles to the layer and switch between them. And if you want, associate them with map themes for quick switching.
https://docs.qgis.org/3.4/en/docs/user_manual/introduction/general_tools.html#manage-custom-style
Karl Magnus Jönsson | Gis-Utvecklare
Geografisk information
Miljö- och samhällsbyggnadsförvaltningen
Kristianstads kommun
Besöksadress: Västra Storgatan 12
Postadress: 291 80 KRISTIANSTAD
Telefon: 044-135416 | Mobil: 0733-135416
E-post: Karl-Magnus.Jonsson at kristianstad.se<mailto:Karl-Magnus.Jonsson at kristianstad.se>
www.kristianstad.se<http://www.kristianstad.se>
Från: Qgis-user <qgis-user-bounces at lists.osgeo.org> För Alexandre Neto
Skickat: den 7 januari 2020 08:55
Till: Patrick Dunford <enzedrailmaps at gmail.com>
Kopia: qgis-user ML <qgis-user at lists.osgeo.org>
Ämne: Re: [Qgis-user] Applying multiple styles to the same layer
Hi Patrick,
I don't think that duplicating a layer is such a big problem. I only advice you to avoid editing the two layers at the same time.
Another option is to use rule-based symbology, which allows you to set a rule (filter) for when the feature are drawn. If you create non exclusive filter, a feature can be drawn several times.
https://docs.qgis.org/3.4/en/docs/user_manual/working_with_vector/vector_properties.html#rule-based-renderer
Hope it helps,
Alexandre Neto
QGIS Support
www.QCooperative.net<http://www.QCooperative.net>
A terça, 7/01/2020, 04:29, Patrick Dunford <enzedrailmaps at gmail.com<mailto:enzedrailmaps at gmail.com>> escreveu:
Good day to all.
I have a Qgis project in which I would like to be able to have the same
layer appear twice in the layer list so that I can apply different
styling to it in each instance.
At the moment I am not aware of how I might do this apart from adding
the same layer to my project twice.
The layers are local Geopackage files (.gpkg) and there is known the
issue that Sqlite documentation does recommend against multiple
connections to a dataset, especially over a network, as this is somewhat
outside the design expectations of Sqlite.
Is there any other way I can have two different styles applied to a layer?
TIA
_______________________________________________
Qgis-user mailing list
Qgis-user at lists.osgeo.org<mailto:Qgis-user at lists.osgeo.org>
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20200107/a466c99a/attachment.html>
More information about the Qgis-user
mailing list