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
0 stars 5 forks source link

vw_tww_overflow has no default obj_id #182

Open cymed opened 5 months ago

cymed commented 5 months ago

The qgis project no longer include vw_leapingweir, vw_prank_weir and vw_pump, but only vw_tww_overflow. vw_tww_overflow does not have a default obj_id and if it had one, it couldn't distinguish the shortcuts. We have 2 options to continue:

  1. Use vw_tww_overflow for creation, use shortcut of overflow
  2. add the tree views and keep distinguishing the types in the shortcut
sjib commented 5 months ago

@urskaufmann Can you check on this?

urskaufmann commented 5 months ago

I don't have any problems. The only one is, that when adding this layer to the project, you have to change the Objektkennung from overflow_type to obj_id. Is this the problem?

cymed commented 4 months ago

So when creating a new object, you have a default value set for obj_id?

urskaufmann commented 4 months ago

There is a sequence seq_overflow_oid, the obj_id is prefix+OV+seq_overflow_oid. That works. The identifier stays NULL if nothing entered. That's not "teksi-like" (if identifier is not entered, then identifier is set to obj_id by default). On the other side, I think, the user should always set an identifer for overflows, that derives from the wastewater_structure identifier...