Open webrian opened 4 months ago
Shouldn't the seq
giving the order?
Anyway, I think this would require a QGIS change. Maybe this is something to consider https://github.com/qgis/QGIS/issues/48191
Still Model Baker should then set the sorting to the seq
(or itf_code
)
Currently the seq
column does not correspond to the itf_code
. Not sure if this is on purpose or an issue with ili2db?
Yes you are right. I have to clarify that.
Shouldn't the
seq
giving the order?Anyway, I think this would require a QGIS change. Maybe this is something to consider qgis/QGIS#48191
Still Model Baker should then set the sorting to the
seq
(oritf_code
)
See https://github.com/claeis/ili2db/issues/526#event-11155599672
From the ili2db docs:
seq Definiert die Reihenfolge der Aufzählelemente.
Thanks for the clarification. I asked back if it's just not working or like that on purpose. Let's see. If https://github.com/qgis/QGIS/issues/48191 will be implemented with an order-expression, MB is flexible on that anyway.
The order of an ORDERED enumeration is not considered by Model Baker.
A simple INTERLIS model with a ordered enumeration:
This model is implemented in the (PG) database as follows:
The column
itfcode
represents the order as defined in the data model.Creating the QGIS project with Model Baker the enum values are ordered in an alphabetical way:
I think from a user's point of view it would be preferable if the order of the values corresponded to the data model.
See also the discussion in the INTERLIS forum: https://interlis.discourse.group/t/ordered-enumerations/175