Repository navigation
feat(grb): road-crossings level evidence with a coverage polygon - #501
Merged
Merged
Conversation
prepare_grb now also writes road_crossings.geoparquet (EPSG:31370, footprint plus a second `axis` geometry column, road_id, structure in ground / grade_separated / unknown, complex_crossing, provenance), road_crossings_coverage.geoparquet and road_crossings_exclusions.geoparquet, for MILOU's confirmed-forage contract. - ground only from WBN elements: the objectenhandboek captures as wegbaan only the corridor visible at ground level (none on, under or through a bridge, nor in a tunnel). Fragments of one carriageway share a road_id; kruispuntzones, elements holding a junction node and undocumented TYPEs are never merged. - grade_separated only when carriageway axes cross without a node inside a touching KNW 1/12 group, every axis takes part and none ends inside; every other structure carrying a carriageway is unknown. - coverage excludes unknown footprints, unresolved axes (MORF 120, 125, -8, not in service), footprints leaving the bbox, and a buffer around drivable axis length no unit accounts for and node-less crossings outside structures. - complex_crossing from MORF 101 autosnelweg, configurable. Validated on three Flemish bboxes (1.8-2.5 s each, 91-96 % coverage, no footprint overlap, simple axes) and loaded by MILOU's load_road_crossings. Signed-off-by: sducournau <simon@imago.dev> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A street ending inside a neighbouring corridor shared its axis stub with that element, so the two distinct streets were merged into one road_id and a trench crossing the main road then running up the side street was bored over the united footprint (107 m instead of 16 m on a real Oudenaarde case, Westerring + Kraneveld). Only a plain pass-through node, where exactly two axis ends meet, now lets an element be merged as a fragment; junctions (three or more ends) and dead ends (one) stop it. Also corrects the README and CHANGELOG wording on merged street names and on unresolved axes inside a ground element (only a buffer is excluded). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: sducournau <simon@imago.dev>
imagodata
pushed a commit
that referenced
this pull request
Oct 1, 2026
Bump gispulse to 2.5.0 (pyproject, QGIS plugin metadata, uv.lock, which had stayed at 2.3.0). Promote the changelog for #496 (PICC/UrbIS/GRB road layers, counted pagination core, GRB face classification), #501 (GRB road-crossings level evidence) and #499 (read_pbf_roads), mirrored into docs-site FR and EN. The PICC, UrbIS and GRB plugins import the counted pagination core that first ships in 2.5.0, so their dependency floor is raised to gispulse>=2.5.0 and their READMEs no longer point at integration/v2.4. Capability count unchanged (144): the new GRB functions, including build_grb_road_crossings, are not registered capabilities. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: sducournau <simon@imago.dev>
Merged
imagodata
added a commit
that referenced
this pull request
Oct 1, 2026
Bump gispulse to 2.5.0 (pyproject, QGIS plugin metadata, uv.lock, which had stayed at 2.3.0). Promote the changelog for #496 (PICC/UrbIS/GRB road layers, counted pagination core, GRB face classification), #501 (GRB road-crossings level evidence) and #499 (read_pbf_roads), mirrored into docs-site FR and EN. The PICC, UrbIS and GRB plugins import the counted pagination core that first ships in 2.5.0, so their dependency floor is raised to gispulse>=2.5.0 and their READMEs no longer point at integration/v2.4. Capability count unchanged (144): the new GRB functions, including build_grb_road_crossings, are not registered capabilities. Signed-off-by: sducournau <simon@imago.dev> Co-authored-by: sducournau <simon@imago.dev> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
prepare_grbnow publishes a road-crossings level-evidence artifact for Flanders, for MILOU's confirmed-forage costing (contract: MILOUdocs/runbooks/surface-regional-priority.md§ « Traversées confirmées : contrat de preuve »):road_crossings.geoparquetPolygon/MultiPolygon), second geometry columnaxis(LineString/MultiLineString),road_id,structure∈ {ground,grade_separated,unknown},complex_crossing, provenance (structure_evidence,source,source_layer,source_ids,axis_ids,morf_codes)road_crossings_coverage.geoparquetroad_crossings_exclusions.geoparquetNew capability:
src/gispulse/capabilities/vector/grb_road_crossings.py(build_grb_road_crossings). The rules are summarised below; the plugin README has the details and citations.Base:
main. This PR was planned as stacked on #496 (feat/regional-road-surfaces); #496 is now squash-merged, so the branch was rebased ontoorigin/main(git rebase --onto origin/main 3ec07bf).groundcomes only from WBN elements. The objectenhandboek captures as wegbaan only "de aan het maaiveld zichtbare wegcorridor": there is no Wbn on a bridge, under a bridge or in a tunnel. It is never assigned by default.road_id: touchingwegsegmentelements that carry the same carriageway axis and the same category.TYPEs.grade_separatedneeds carriageway axes crossing without a node inside a group of KNW 1/12 polygons, with every such axis taking part and none ending inside.unknown: every other structure carrying a carriageway (single axis, axis ending inside, axis crossing nothing). These are always left out of coverage.MORF120, 125, −8, not in service);crossing_exclusion_buffer_m(default 15 m) around drivable axes that no unit accounts for;complex_crossing=MORF101 autosnelweg, configurable.Validation
ground, structure verdicts, no spatial duplicate, coverage exclusions, GeoParquet round trip with both CRS, dedicated error codes.tests/unit/with the CI extras: 6 483 passed. The 8 failures are intest_step_kinds,test_run_controlandtest_run_events. Thestep_kindsones and therun_controlcancel case reproduce onorigin/mainwith the same extras; none touches the GRB.load_road_crossings.road_ids;TYPEdrift;Consumer findings (MILOU side, not fixed here)
I ran MILOU's real
RoadCrossings.crossingson 25 tracés of the 12/09 canon run (32.8 km) against these artifacts. Two problems sit in the consumer, independently of this producer:ROAD_CROSSING_INCOMPLETE. 10 of the 25 tracés end inside a road footprint, which makes the whole tracé fail.On top of that, MILOU rejects an empty artifact (
frame.empty), and the coverage polygon is not read yet (D6, mixed mode).Open decisions
grade_separatedholds for an excavation following one of the crossing roads through the structure. An excavation dug at ground level under a deck, off any mapped road, is not represented.road_idis stable for one acquisition only. Bundles from different bounds must be deduplicated onsource_ids, never concatenated.Refs #464
🤖 Generated with Claude Code