<div dir="ltr"><div>I still don't understand what you mean by updating a group...</div><div><br></div><div>Anyway, maybe others have faced similar problems, I would try the qgis-dev mailing list</div><div><br></div><div>Alexandre Neto<br></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Aug 20, 2021 at 1:16 PM Jésahel Benoist <<a href="mailto:djes1975@gmail.com">djes1975@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Hi Alexandre,</div><div dir="ltr" class="gmail_attr"><br></div><div dir="ltr" class="gmail_attr">Le jeu. 19 août 2021 à 23:51, Alexandre Neto <<a href="mailto:senhor.neto@gmail.com" target="_blank">senhor.neto@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div dir="auto">Hi,</div><div dir="auto"><br></div>Actually, in the past, most things depended solely on layer names. As Charles mentioned this posed lots of problems when there were layers with the same name.</div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Yes, it can't be solely on layer names. An id is necessary. But I think a random and changing id is a problem too, especially if the user can't define it.</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div dir="auto"><br></div><div dir="auto">Maybe I did not understood the difficulty that you are facing, but if you need to swap layers, instead of loading a new layer and remove the old one, you can simply use the change data source functionality to change the source of UL our data, this will keep your layer id intact. Besides, even if the layer attributes are different, as long as the ones used by atlas, styles, etc are kept, every should keep working fine.</div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">It is fine especially for users using files like shapefiles. But the point is not about data sources, it is more about updating layers when needed in well defined projects and having their id reinitialised. The source is the same.</div><div dir="auto"><br></div><div dir="auto">For example when I'm updating a group of layers about a specific topic, users can only update this specific group in their projects. But if they do, they'll have to change their templates too. A group may contain modified and new layers, what would need a lot of work to simply update. </div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div dir="auto"><br></div><div dir="auto">Besides the change data source option on each layer context menu, you can also use the change data source plugin for when you want to change too many layers.</div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Yes, I'm using these a lot. It's great, especially when I'm doing portable versions of my projects. </div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div dir="auto"><br></div><div dir="auto">Best regards,</div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Best regards too</div><div dir="auto"><br></div><div dir="auto">Jésahel</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
</blockquote></div>
</blockquote></div></div></div>
</blockquote></div>