opengisch / QgisModelBaker

Create QGIS projects from database schemas or Interlis models
https://opengisch.github.io/QgisModelBaker/
GNU Lesser General Public License v3.0
55 stars 17 forks source link

Concern multiple geometries per GeoPackage Table Frontend #970

Closed signedav closed 2 weeks ago

signedav commented 1 month ago

The setting for gpkgMultiGeomPerTable on Schema Import

Screenshot from 2024-10-30 22-06-22

Otherwise the setting is invisible and the parameter is false

This does only work with a sufficient GDAL version * Otherwise it's invisible and false.

Generating QGIS Project

Reading such a project does only work with a sufficient GDAL version * If the schema has been created with the gpkgMultiGeomPerTable and it contains tables with multiple geometry columns, but the current GDAL version is not sufficient, we block the creation of a QGIS Project.

Screenshot from 2024-10-30 22-08-58

When we have a sufficient GDAL version * we can create a QGIS project, but need to warn, that others reading this project might have trouble.

image

GDAL Version 3.8

This functionality is not standardized and does only work with GDAL Version >= 3.8

Windows Builds have it since 3.36 but Ubuntu from the current repositories not yet.

When a schema is created with this parameter gpkgMultiGeomPerTable and the Model contains multiple geometries per table, it can neither create a project on QGIS with GDAL<3.8 nor read a project that has been created on a QGIS with GDAL >= 3.8.

If no multiple geometries per table, it still can create a project from it by GDAL<3.8 or open such a project.

Night mode:

image

Requires https://github.com/opengisch/QgisModelBakerLibrary/pull/108

Resolves https://github.com/opengisch/QgisModelBaker/issues/531

signedav commented 3 weeks ago

@gacarrillor I guess this will lead to conflicts with the mulitlanguage GUI, but i guess it's an easy one to resolve...

signedav commented 3 weeks ago

Thanks @gacarrillor I considered that. I shortened and simplified it generally.