Open janineru opened 1 year ago
CC @pka
The GDAL geometry model does support multiple geometry columns, so it would be possible to support that in the driver and QGIS would you let choose the geometry column.
The Interlis driver is on a minimal maintenance level from my side, since all official support goes into https://github.com/claeis/ili2db and https://github.com/opengisch/QgisModelBaker which is based on ili2db
. So improvments like this only happens if someone really needs it and is willing to sponsor the work on it.
Expected behavior and actual behavior.
If an INTERLIS 2 Transferfile contains a class with several geometry attributes, only one geometry is visualized.
Possible Solution: Visualization of all geometries, e.g. by generating a layer for each geometry (example below). It is suggested, that all attributes should be with all geometries to allow user choice to delete one layer, or provide all attributes for styling. Moreover, for consistency reasons, it could be considered to add the geom attribute to the name of all layers of INTERLIS 2 Transferfiles (also to those layers with only one geometry).
Steps to reproduce the problem.
The test data set is based on the VSADSSMINI_2020_LV95 data model. The node class has two geometries in the mini model, 'Lage' and 'Detailgeometrie'. When imported in QGIS, the layer VSADSSMINI_2020_LV95.VSADSSMini.Knoten is added with the geometry of the attribute 'Lage', the 'Detailgeometrie' is not shown. (Observation: In the example XTF, 'Lage' comes after 'Detailgeometry', which may imply that points are chosen over polygons.)
Possible Solution: Import two layers: VSADSSMINI_2020_LV95.VSADSSMini.Knoten.Detailgeometrie and VSADSSMINI_2020_LV95.VSADSSMini.Knoten.Lage
Excerpt from data model VSADSSMINI_2020_LV95:
Excerpt from data model Base_LV95:
Excerpt from the test dataset:
Operating system
Windows 10 Enterprise 64-Bit
GDAL version and provenance
QGIS 3.28.0 'Firenze' and QGIS 3.22.12 'Białowieża'