[QGIS-Developer] How important are rule ids (keys) in QGIS project files?
Andreas Neumann
a.neumann at carto.net
Mon Jun 17 07:34:50 PDT 2019
Hi Martin,
Thanks a lot. This is useful information to me.
Andreas
On 2019-06-17 12:11, Martin Dobias wrote:
> Hi Andreas
>
> On Wed, Jun 12, 2019 at 11:00 AM Andreas Neumann <a.neumann at carto.net> wrote:
>
>> Now my question: will we run into problems because of these duplicated rule keys? If this is a problem - why is QGIS not taking care about making the rule ids unique by generating new uuid keys on importing the qml style file? Is this a bug in QGIS? Or are all of these rule keys totally irrelevant? If they are irrelevant, why do they exist in the project?
>
> Rule key IDs are there to identify rules within a single layer. A rule
> key being repeated in a different layer should do no harm. From what I
> recall, the reason behind having rule keys is mainly to be able to
> have unique identification for legend - e.g. if user enables or
> disables a rule, we know which one it is based on the rule key
> (otherwise we would need to use indexes of rules which are likely to
> change when rules get added/removed/rearranged).
>
> Hope that helps....
>
> Cheers
> Martin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20190617/e63728fc/attachment.html>
More information about the QGIS-Developer
mailing list