-
Notifications
You must be signed in to change notification settings - Fork 3
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
2024 11 04 fix ara bauwerk export #178
base: master
Are you sure you want to change the base?
Conversation
Should solve #177 |
Relation to Abwasserbauwerk is now empty with SIA405 Export: Abwasserknoten is still exported. Maybe in future ARABauwerk should become part of SIA405 Abwasser. |
This would only be needed on tww |
For tww this would have to be extended:
|
Abwasserknoten is still exported. I do not expect, that the node is exported. First of all, I expect that there is no error, when I should export such a database to SIA405. |
I have now checked with this new code. And I got the next error (sorry): no more abwassernetzelement, but bauwerksteil:
|
I did then delete the cover, that was with this ARA-Bauwerk, and then it works.... |
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.
Does not work, if the ARA-Bauwerk has a structure_part. All Structure_Parts of Wastewater_structures, that are not in the export, can also not be in the export
Thanks for the hint - then I have to adapt this also.
Looks a little bit trickier to not export the cover. First work around would be to just leave the fk_abwasserbauerk empty also for Deckel, etc.
|
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
…m/QGEP/qgepqwat2ili into 2024-11-04-fix-ara-bauwerk-export
for more information, see https://pre-commit.ci
…m/QGEP/qgepqwat2ili into 2024-11-04-fix-ara-bauwerk-export
for more information, see https://pre-commit.ci
…m/QGEP/qgepqwat2ili into 2024-11-04-fix-ara-bauwerk-export
for more information, see https://pre-commit.ci
|
…m/QGEP/qgepqwat2ili into 2024-11-04-fix-ara-bauwerk-export
for more information, see https://pre-commit.ci
|
…m/QGEP/qgepqwat2ili into 2024-11-04-fix-ara-bauwerk-export
for more information, see https://pre-commit.ci
take out filter in dss
|
…m/QGEP/qgepqwat2ili into 2024-11-04-fix-ara-bauwerk-export
for more information, see https://pre-commit.ci
…m/QGEP/qgepqwat2ili into 2024-11-04-fix-ara-bauwerk-export
for more information, see https://pre-commit.ci
adapted filters
|
…m/QGEP/qgepqwat2ili into 2024-11-04-fix-ara-bauwerk-export
for more information, see https://pre-commit.ci
@urskaufmann Can you try again? |
Export SIA405 no selection: no error. Does not export 3 nodes, that are not connected to a wastewater_structure, does not export a channel, that was not connected from a wastewater_structure. Export DSS, a selction of reaches: I get this error: Ein Fehler trat bei der Ausführung von Python-Code auf: sqlalchemy.exc.ProgrammingError: (psycopg2.errors.UndefinedTable) missing FROM-clause entry for table "structure_part" LINE 2: ...pretreatment JOIN qgep_od.wastewater_structure ON qgep_od.st... ^ [SQL: SELECT qgep_od.mechanical_pretreatment.obj_id AS qgep_od_mechanical_pretreatment_obj_id, qgep_od.mechanical_pretreatment.identifier AS qgep_od_mechanical_pretreatment_identifier, qgep_od.mechanical_pretreatment.kind AS qgep_od_mechanical_pretreatment_kind, qgep_od.mechanical_pretreatment.remark AS qgep_od_mechanical_pretreatment_remark, qgep_od.mechanical_pretreatment.last_modification AS qgep_od_mechanical_pretreatment_last_modification, qgep_od.mechanical_pretreatment.fk_dataowner AS qgep_od_mechanical_pretreatment_fk_dataowner, qgep_od.mechanical_pretreatment.fk_provider AS qgep_od_mechanical_pretreatment_fk_provider, qgep_od.mechanical_pretreatment.fk_infiltration_installation AS qgep_od_mechanical_pretreatment_fk_infiltration_installat_1, qgep_od.mechanical_pretreatment.fk_wastewater_structure AS qgep_od_mechanical_pretreatment_fk_wastewater_structure FROM qgep_od.mechanical_pretreatment JOIN qgep_od.wastewater_structure ON qgep_od.structure_part.fk_wastewater_structure = qgep_od.wastewater_structure.obj_id JOIN qgep_od.wastewater_networkelement ON qgep_od.wastewater_structure.obj_id = qgep_od.wastewater_networkelement.fk_wastewater_structure WHERE qgep_od.wastewater_networkelement.obj_id IN (%(obj_id_1)s, %(obj_id_2)s, ....... Traceback (most recent call last): The above exception was the direct cause of the following exception: Traceback (most recent call last): [SQL: SELECT qgep_od.mechanical_pretreatment.obj_id AS qgep_od_mechanical_pretreatment_obj_id, qgep_od.mechanical_pretreatment.identifier AS qgep_od_mechanical_pretreatment_identifier, qgep_od.mechanical_pretreatment.kind AS qgep_od_mechanical_pretreatment_kind, qgep_od.mechanical_pretreatment.remark AS qgep_od_mechanical_pretreatment_remark, qgep_od.mechanical_pretreatment.last_modification AS qgep_od_mechanical_pretreatment_last_modification, qgep_od.mechanical_pretreatment.fk_dataowner AS qgep_od_mechanical_pretreatment_fk_dataowner, qgep_od.mechanical_pretreatment.fk_provider AS qgep_od_mechanical_pretreatment_fk_provider, qgep_od.mechanical_pretreatment.fk_infiltration_installation AS qgep_od_mechanical_pretreatment_fk_infiltration_installat_1, qgep_od.mechanical_pretreatment.fk_wastewater_structure AS qgep_od_mechanical_pretreatment_fk_wastewater_structure Python-Version: 3.12.7 (main, Oct 25 2024, 11:18:09) [MSC v.1938 64 bit (AMD64)] Export SIA405, a selection of reaches: I get this error: _Ein Fehler trat bei der Ausführung von Python-Code auf: ValueError: list.remove(x): x not in list Python-Version: 3.12.7 (main, Oct 25 2024, 11:18:09) [MSC v.1938 64 bit (AMD64)] |
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.
Still errors when exporting a selection, no errors when exporting without selection, but in SIA405-export dataloss, when network_elements have no fk_wastewater_structure
No description provided.