<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 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 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 dir="auto"><br></div><div dir="auto">Best regards,</div><div dir="auto"><br></div><div dir="auto">Alexandre Neto</div><div dir="auto">User Support</div><div dir="auto"><a href="http://www.qcooperative.net">www.qcooperative.net</a></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">A quinta, 19/08/2021, 20:58, Jésahel Benoist <<a href="mailto:djes1975@gmail.com">djes1975@gmail.com</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le jeu. 19 août 2021 à 21:34, Charles Dixon-Paver <<a href="mailto:charles@kartoza.com" target="_blank" rel="noreferrer">charles@kartoza.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Maybe a better discussion to be having is "can we make it possible to manually edit layer ids", but i think that will probably be dependant on the existing QEPs like <a href="https://github.com/qgis/QGIS-Enhancement-Proposals/issues/76" rel="noreferrer noreferrer" target="_blank">https://github.com/qgis/QGIS-Enhancement-Proposals/issues/76</a><br></div><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 class="gmail_quote" dir="auto"><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"></blockquote></div></blockquote></div></div></blockquote></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Thank you for this reference. I'm not so surprised that the team has already worked on this change. There's something to do, maybe without going so far...</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;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"><div dir="auto"><div class="gmail_quote" dir="auto"><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>
</blockquote></div>
</blockquote></div></div></div>
_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank" rel="noreferrer">Qgis-user@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
</blockquote></div>