Hi Andreas

On Wed, Jun 12, 2019 at 11:00 AM Andreas Neumann <[email protected]> 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
_______________________________________________
QGIS-Developer mailing list
[email protected]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to