Open d2hydro opened 9 months ago
Seems waterbeheercode is only available for water authorities. We need codes for rijkswaterstaat, found objects managed by Provinces and can imagine municipalities manage objects as well. A sollution to solve it all is to start using BGT-codes: https://www.kadaster.nl/-/bgt-bronhoudercodes-per-1-1-2022 as they are available for all authorities. Then:
NL.BGTCODE.{bgt_code}.{layer}.{code}
would be the format-string-template
We need an immutable object-identification, because:
What we see:
globalid
is still changing between different table versions supplied by water authoritiesnen3610id
usesobjectid
which is the ArcGIS table index. This is quite dangerous as we assumeobjectid
will change when a water authority re-indexes/rebuilds its databaseFor modelling purposes we propose to use the
code
column instead to introduce a fieldmodel_id
to use in models and can be related to objects as long as they have acode
:We'll introduce a method on a HyDAMO layer that will:
code
is filled; return an exception if it is notmodel_id