From fa9b41245f918ea2b14d753d8bb47bb779c2c465 Mon Sep 17 00:00:00 2001 From: Urs Kaufmann Date: Wed, 18 Dec 2024 22:28:41 +0100 Subject: [PATCH 1/3] additions due to actual export programming .rst version sqlalchemy, version modelbaker, export of selections, export to SIA405 if there are wwtp_structures in the database --- en/admin-guide/interlis-io/index.rst | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/en/admin-guide/interlis-io/index.rst b/en/admin-guide/interlis-io/index.rst index 6fa83231f..6b89b4188 100644 --- a/en/admin-guide/interlis-io/index.rst +++ b/en/admin-guide/interlis-io/index.rst @@ -38,7 +38,7 @@ To install : before launching QGIS, open OSGeo4W Shell and type:: - >>> pip3 install "sqlalchemy~=1.3.22" "geoalchemy2>=0.9.0" + >>> pip3 install "sqlalchemy~=1.4" "geoalchemy2>=0.9.0" If the command fails, try:: @@ -57,12 +57,12 @@ The same `--target` flag can be added to install `sqlalchemy` and `geoalchemy2` Modelbaker ----------- -The QGEP plugin will propose to install the Modelbaker plugin automatically. If that did not work, install the QGIS plugin `Modelbaker` manually from the QGIS plugin manager (version 6.4 or newer but older than 7.1). +The QGEP plugin will propose to install the Modelbaker plugin automatically. If that did not work, install the QGIS plugin `Modelbaker` manually from the QGIS plugin manager. QGEP Version ------------- -The export only supports up-to-date QGEP datamodel (1.6.1 at the time of writing). Ensure your datamodel is fully updated before trying to import/export. +The export only supports up-to-date QGEP datamodel (1.6.2 at the time of writing). Ensure your datamodel is fully updated before trying to import/export. Usage (GUI) @@ -96,6 +96,11 @@ If you have an active selection in the nodes and/or reaches layer, you can choos .. figure:: images/selection_export.png +When exporting a selection, there are not all records in all tables reduced to the selection. Wastewater structures, structure parts, wastewater networkelements, catchments, overflows are reduced, but other tables as pipe profiles or organisations are not reduced due to special cases, where it would be very difficult to select all necessary records. +If there are reaches with foregin keys to other reaches, that are not in the selection, then this foregin key is not exported / then the selection will be expanded with this connected reach. + +.. note:: Exporting to SIA405 and there are wwtp_structure in the database: because wwtp_structure is not part of the SIA405 datamodel, the wastewater_structure (and the corresponding structure_parts) will not be exported. But the wastewater_networkelement will be exported without entry in fk_wastewater_structure. Like this, the hydraulic network stays correct. + The export tool is capable of exporting label positions for different scales. You can choose which scales you are interested in exporting by selected/deselecting them. You can also change the angle for horizontal text in INTERLIS if your target system has another convention than INTERLIS. From 5855a4953b1d01a19adf0d470fc5364556fc98e6 Mon Sep 17 00:00:00 2001 From: Urs Kaufmann Date: Thu, 19 Dec 2024 08:35:38 +0100 Subject: [PATCH 2/3] expand selection when reach is connected without node.rst --- en/admin-guide/interlis-io/index.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/en/admin-guide/interlis-io/index.rst b/en/admin-guide/interlis-io/index.rst index 6b89b4188..f03dee2e0 100644 --- a/en/admin-guide/interlis-io/index.rst +++ b/en/admin-guide/interlis-io/index.rst @@ -97,7 +97,7 @@ If you have an active selection in the nodes and/or reaches layer, you can choos .. figure:: images/selection_export.png When exporting a selection, there are not all records in all tables reduced to the selection. Wastewater structures, structure parts, wastewater networkelements, catchments, overflows are reduced, but other tables as pipe profiles or organisations are not reduced due to special cases, where it would be very difficult to select all necessary records. -If there are reaches with foregin keys to other reaches, that are not in the selection, then this foregin key is not exported / then the selection will be expanded with this connected reach. +If there are reaches with foregin keys to other reaches, that are not in the selection, then the selection will be expanded with this connected reach. .. note:: Exporting to SIA405 and there are wwtp_structure in the database: because wwtp_structure is not part of the SIA405 datamodel, the wastewater_structure (and the corresponding structure_parts) will not be exported. But the wastewater_networkelement will be exported without entry in fk_wastewater_structure. Like this, the hydraulic network stays correct. From 30988736affd31ede1e9e1979fa9d0afbc067060 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 19 Dec 2024 07:38:19 +0000 Subject: [PATCH 3/3] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- en/admin-guide/interlis-io/index.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/en/admin-guide/interlis-io/index.rst b/en/admin-guide/interlis-io/index.rst index f03dee2e0..a334a667d 100644 --- a/en/admin-guide/interlis-io/index.rst +++ b/en/admin-guide/interlis-io/index.rst @@ -96,7 +96,7 @@ If you have an active selection in the nodes and/or reaches layer, you can choos .. figure:: images/selection_export.png -When exporting a selection, there are not all records in all tables reduced to the selection. Wastewater structures, structure parts, wastewater networkelements, catchments, overflows are reduced, but other tables as pipe profiles or organisations are not reduced due to special cases, where it would be very difficult to select all necessary records. +When exporting a selection, there are not all records in all tables reduced to the selection. Wastewater structures, structure parts, wastewater networkelements, catchments, overflows are reduced, but other tables as pipe profiles or organisations are not reduced due to special cases, where it would be very difficult to select all necessary records. If there are reaches with foregin keys to other reaches, that are not in the selection, then the selection will be expanded with this connected reach. .. note:: Exporting to SIA405 and there are wwtp_structure in the database: because wwtp_structure is not part of the SIA405 datamodel, the wastewater_structure (and the corresponding structure_parts) will not be exported. But the wastewater_networkelement will be exported without entry in fk_wastewater_structure. Like this, the hydraulic network stays correct.