-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plugin #23
Conversation
@@ -0,0 +1,30 @@ | |||
#!/bin/bash | |||
LIBS_DIR="plugin/teksi_wastewater/libs" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what about git submodule?
qgis-plugin-ci easily package a submodule, that would simplify the packaging part.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can change to a submodule. I was a little scared by the fact that it is not possible to submodule only a part of a repository. It means that all parts of the library like tests, documentation, and so on will be checked out as well.
But in fact its not that much overhead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
git attributes allow to configure what we don't want in the archive, that's a good thing for packaging at least
90d57e3
to
eae20be
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need all the ili files in plugin/teksi_wastewater/tww2ili/ili ?
If we reference directly from there, the INTERLIS interface will automatically adjust to patch changes
|
In fact they can be retrieved automatically by the interlis tools. I'll remove them to avoid redundancy |
@domi4484 I think you should still have a config somewhere which models are supported on the import/export. Maybe both (list on export and check on import) could be linked to the config - so code maintenace could be eased as when adding new models or changing releases, as only the configuration would need to be adapted and all other code relates to this. Else you have to know where else to adapt code in the plugin / gui / etc. |
@sjib for the import i think we can import both DSS and KEK to the in-between schema. At the moment of importing the XTF data we will get an error if the XTF contains additional unsupported models. For the export do I unterstand it right that we need to choose what to export:
|
Currently it is implemented on 2015 like this:
See also my updated documentation: QGEP/docs#221 |
@domi4484 |
@sjib thanks for the explanations above! When importing you xtf I see that there are many features with same combination of How should we handle that? Can the index be changed? Or should the data not contain such things? One example in the xtf is the Bezeichnung |
This constraint should only be the same as in the INTERLIS definition and not cover wastewater_structure and wastewater_network_element - but each separately: and
So no wastewater_structures with the same DatenherrRef / Bezeichnung. But a similar wastewater_network_element (e.g. reach) is ok - and it is very common to name the reach the same as the channel. Please list |
It is defined like this: CREATE UNIQUE INDEX in_od_wastewater_structure_identifier ON tww_od.wastewater_structure USING btree (identifier ASC NULLS LAST, fk_dataowner ASC NULLS LAST); |
In the case of Bezeichnung But in the case cited above the objects are |
No, Deckel is a subclass of structure_part and is associated to a wastewater_structure. I suggest to try to try to turn off the index temporarely to check if it changes anything, |
@domi4484 Does the import in the intermediary schema works ok? On which step are you getting problems? |
If I turn it off everything works fine. The problem was happening on the last step, committing the transaction into tww_od.
This is probably the point, in the tww_od representation for the mapping Now I fixed that but I am having another issue on commit. Still investigating...
|
@domi4484 Could have a relation with the the Postgres / Postgis Version and missing z coordinates
Would be great if you can sort this out and would also give a hint for backporting. |
@sjib thanks it looks like the same error. I thought the statement I'll see if I can reduce the xtf to a minimal example to sort it out easier. |
Maybe you can check how the imported geometries (*.Lage, Haltung.Verlauf, Abwasserbauwerk.Detailgeometrie) are handled and what happens, if they only have 2D coordinates x,y (as in the dataset).
To what value is the z-value set in the datamodels 3D geometries that we have now?
NULL, empty?
Could this then conflict with any trigger/index/…?
|
@domi4484 I made a one pipe network - can you try this dataset? If it still fails we can go back step by step - I have a whole series with
|
If you need I can also send the SIA405_Abwasser or VSA_KEK version instead. |
54dd61e
to
4d4b863
Compare
Tested on Windows on QGIS 3.28.13
Not tested (at least on my side) :
To be migrated to a draft plugin :
|
qgep qwat to ili is added as not submodule
for more information, see https://pre-commit.ci
Add plugin as it is now from https://github.com/teksi/wastewater_old
qgep qwat to ili is added as not submodule