teksi / wastewater

[DEV] Future TEKSI wastewater module, adapted data model to fit VSA-DSS 2020 new standard
https://teksi.github.io/wastewater
GNU General Public License v3.0
1 stars 5 forks source link

Not possible to recalculate vw_tww_wastewater_structure.wn_identifier #183

Open urskaufmann opened 6 months ago

urskaufmann commented 6 months ago

I did copy some new manhole-records from QGIS into vw_tww_wastewater_structure. Obj_id, co_obj_id and wn_obj_id are created from tww as expected. Identifer and wn_identifier is only for the first record as expected (means: the same as obj_id / wn_obj_id) all other records are build like: take another existing identifier+_n. Question: why are these identifiers not the same as the obj_id (rule: if there is no userentry, it's set to obj_id)?

Because this is so, I wanted the change the identifiers with the qgis field calculator: identifier = obj_id and co_identifier = obj_id works. wn_identifier = obj_id looks first also as it would work, I can save and in the attribute table are still this calculated values, but if I want the edit this records again, the value in the table suddenly changes again to the old values, that have be created with the import. I can not change the wn_identifier with the field_calculator or with the attribut form in vw_tww_wastewater_structure. I can change in vw_wastewater_node. Why? Can we change this?

cymed commented 4 months ago

wn_identifier is stored in wastewater_networkelement, which is not updated so far. Updating of networkelement is included in #36