[Qgis-user] Themes, visibility, layout, report, atlas and Layer ID vs Layer name
Jésahel Benoist
djes1975 at gmail.com
Thu Aug 19 12:28:58 PDT 2021
Le jeu. 19 août 2021 à 20:23, Charles Dixon-Paver <charles at kartoza.com> a
écrit :
> I would imagine there are just far too many projects and use cases where
> the same layer name is used for multiple layers.
>
Yes, certainly. But the random id is a bad solution. I think the id should
be created sequentially and could be modified by the user.
Saving and loading themes etc is a feature request I imagine.
>
Yes :)
Copying styles between layers is supported (and you can save style and
> layer definitions).
>
Yes, a good tip is to assignate keys to copy/paste style.
I imagine most issues can be resolved by just using an expression based id
> wherever possible, with something like this:
>
> QgsProject.instance().mapLayersByName('World Map')[0].id()
>
>>
Sure
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20210819/b7191bbd/attachment.html>
More information about the Qgis-user
mailing list