Skip to content

Add hfb_pwn dataset and doorsnedes GeoJSON to mockup data#62

Merged
bdestombe merged 2 commits into
mainfrom
add-hfb-pwn-and-doorsnedes-geojson
Jul 6, 2026
Merged

Add hfb_pwn dataset and doorsnedes GeoJSON to mockup data#62
bdestombe merged 2 commits into
mainfrom
add-hfb-pwn-and-doorsnedes-geojson

Conversation

@bdestombe

Copy link
Copy Markdown
Member

What

Adds the mockup data that the PWN model-2 script (modelscripts/09pwnmodel2/01_pwnmodel2.py) needs. That model's CI installs nhflodata from main and, with NHFLODATA_LOCATION unset, reads the mockup data bundled in the package — so every dataset the script references must be registered and have mockup data on main.

  • Register hfb_pwn (horizontal flow barriers / sheet pile walls) v1.0.0 in repository.yaml, with mockup (hfb_pwn.geojson + generator).
  • Add doorsnedes.geojson to doorsnedes_nh/v1.0.0, converted from doorsnedes.gpkg (RD / EPSG:28992 preserved, matching the lakes_pwn.geojson convention). The model reads the cross-section lines as GeoJSON.

Tests

  • New tests/test_geojson_content.py: asserts required property columns + a CRS for the drains_pwn and hfb_pwn GeoJSON artifacts.
  • schema_repository.yaml: yamale ignores length= on a list(); enforce exactly-4 extent via min/max.
  • test_mockup_folder_structure.py: normalize path separators so it also passes on Windows.

Local run: 5 passed, 2 xfailed.

Note

doorsnedes.gpkg is left in place (the forbidden-geopackage test is xfail); it can be dropped in a follow-up once no consumer reads it.

bdestombe added 2 commits July 6, 2026 15:20
Register hfb_pwn (horizontal flow barriers / sheet pile walls, v1.0.0) in
repository.yaml and add its mockup (hfb_pwn.geojson + generator). Add
doorsnedes.geojson (converted from doorsnedes.gpkg, EPSG:28992) to the
doorsnedes_nh mockup so model scripts can read the cross-section lines as
GeoJSON.

Add test_geojson_content.py asserting required property columns and a CRS for
the drains_pwn and hfb_pwn GeoJSON artifacts. Fix the yamale extent rule
(length= is ignored; use min/max=4) and normalize path separators in the
mockup folder-structure test so it also passes on Windows.
Pre-existing lint failure surfaced by this PR's lint job; groups the stdlib
zoneinfo import with the other stdlib imports. No behaviour change.
@bdestombe bdestombe merged commit ebdba53 into main Jul 6, 2026
1 check passed
@bdestombe bdestombe deleted the add-hfb-pwn-and-doorsnedes-geojson branch July 6, 2026 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant