garage44.eu/jeroen/cartopolis

logclone: git clone https://garage44.eu/jeroen/cartopolis.git

.. /docs/notes/underground.md

raw


topic: underground triggers: [underground.rs, formats/underground.rs, pipeline/underground.rs, geotop, GeoTOP, BRO, publiek.broservices.nl, bhrgt, cpt, gmw, gld, GUF, wko, buisleiding, rev-portaal, Bodemloket, Tankbestand, KNMI, fdsnws, NLOG, gasfield, dirsurveys, stratinterpretations, Rotliegend] updated: 2026-10-08

The underground layers: where each comes from, and what it cannot say

Seven layers under Map ▸ Underground besides the sewers (sewers.md). All write one format, cartopolis_geo::formats::underground (columns, lines, points, rings; depth in metres below the ground), and one client module streams them (systems::underground). Researched and measured 2026-10-08 over Groningen, RD 229000–238000 × 578000–587000.

Soil model — geotop

TNO's OPeNDAP server, https://www.dinodata.nl/opendap/GeoTOP/geotop.nc — the www. host; the bare one fails the TLS handshake. Subset by index lithok[x0:1:x1][y0:1:y1][0:1:312], order [x][y][z], and the .ascii suffix answers plain text, so no NetCDF reader is needed (.nc is classic NetCDF if one ever is). Grid: x from 13600, y from 338500, both 100 m; z from −50 to +106 m NAP in 0.5 m. Coordinates are a voxel's lower-left corner and bottom face; libraries disagree (nlmod reads z as the centre), the extents settle it. No-data −127 everywhere above the ground, so the top valid voxel is the ground. Over water it is the bed. CC0. One request covers a city in well under a second; PDOK only offers a 4.6 GB national zip.

Boreholes and soundings — boreholes

publiek.broservices.nl — POST …/characteristics/searches with a lat/lon (EPSG:4258) bounding box; XML back. Over 2,000 hits the search is refused whole (HTTP 400, "Het aantal objecten is groter dan 2000") — split the box. Paths: sr/bhrgt/v2, sr/bhrp/v2, sr/bhrg/v3 (v1/v2 answer 503), sr/cpt/v1. Groningen: 346 + 1,145 + 142 boreholes, 3,029 soundings. A borehole's layers need one GET of its object (~15–25 KB); a sounding's depth is in the hit. Depths below ground already. CC0.

Groundwater — groundwater

PDOK OGC API bro-grondwatermonitoring-in-samenhang-karakteristieken (the /bzk/ path redirects to /tno/): gm_gmw (857), gm_gmw_monitoringtube (958), gm_gld (526) in three bulk calls; an RD bbox-crs is accepted and returns nothing, so use WGS84. All levels are m NAP. The latest value takes two GETs per dossier — observationsSummary, then observations/{id}?mostRecentTVP=ja (true is a 400). Never the plain objects/{GLD}: one answered 41 MB.

Heat storage — wko

The BRO's GUF register is the only open source with depths and has no WFS: a daily national GeoPackage (57 MB) from PDOK's atom feed. Relational, not simple features (atlas's pipeline/wko.rs has the joins). Migrated LGR screens are untidy and coverage is incomplete — 114 loops here against 865 in RVO's ArcGIS WKO-tool, which has loop depths but no filter depth for open wells and no licence. Rejected as a second source for that reason.

Transport pipelines — pipelines

REV GeoServer, rev_public:bl_buisleidingreferentie, one request (495 in Groningen). bovenkantbuis is empty for every segment here; drawn at 1 m cover, and it is the one layer whose depth is a convention rather than data. Numbers arrive as strings. No licence stated.

Gas field — gasfield

Soil contamination — contamination

Bodemloket's ArcGIS (lks_blk_rd_v1/MapServer/0) has assessments (STATUS_OORD) but the City of Groningen does not deliver to it — over the city it holds nothing. The city's own Bodeminformatie layers carry no status at all. What it does publish is Tankbestand (2,549 underground tanks, with whether they were removed, filled, or left), which is what is drawn there; a removed tank is not. The city's filled-in canals (Dempingen, 2,595) are an obvious next layer and are not drawn yet.

Two things in front of anything deep, both found the hard way (2026-10-08)

--dump-state carries backdrop_present, backdrop_visible, backdrop_depth_m and ground_unopened (materials still solid while the ground should be open — must be 0), which separate these failures without a picture.