d2hydro / hydamo

module to work with Hydro Data Models (HyDAMO)
0 stars 0 forks source link

Immutable object-identification #1

Open d2hydro opened 9 months ago

d2hydro commented 9 months ago

We need an immutable object-identification, because:

What we see:

For modelling purposes we propose to use the code column instead to introduce a field model_id to use in models and can be related to objects as long as they have a code:

NL.WBHCODE.{wbhcode}.{layer}.{code}

We'll introduce a method on a HyDAMO layer that will:

d2hydro commented 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