Geoportail-Luxembourg / qgis-pag-plugin

Plugin QGIS pour la gestion des PAG du Ministère de l'Intérieur du Grand-Duché de Luxembourg
MIT License
1 stars 2 forks source link

A set of qml styles instead of sld #24

Closed jaykayone closed 8 years ago

jaykayone commented 8 years ago

This is a set of qml styles that should be used instead of the sld ones.

They also contain labelling information that should be imported.

For the layer order, it can be fixed like this:

unknown

@arx-it please merge if you agree

arx-it commented 8 years ago

How about managind the fields editors in the qml too? That would solve the problem of the List of Values description (I can only get the code in the XSD), and the field alias. I can generate the qml with the current fields editors, and you would have the responsibility the update the layer style when adding attributes, or updating lists of values.

jaykayone commented 8 years ago

we can store it there, that sounds OK, but there should still be a function where parsing the XSD adds a value to an enumeration, even if we have not saved it to the qld yet... the function has been developped anyway. we would then be able to see the new value in the properties, add a description and save the qld.

In my tests though, when I imported the style out of the qld it did not overwrite the dialog settings, only symbology and labelling

arx-it commented 8 years ago

I can confirm, that the editors are overwritten by the qml.

So what I will do, is loading the qml, then running the editors configuration function. So up to you to save the new qml when new values are available.

arx-it commented 8 years ago

Done for the qml loading and enumeration editor. I will check how I can manage the layer ordering.