git clone https://garage44.eu/jeroen/cartopolis.git.. /docs/grade-shots.toml
# Known places to check that grade separation still works: tunnels under the
# ground, bridges over it, and the two things that are neither.
#
# cargo shots docs/grade-shots.toml # everything
# cargo shots docs/grade-shots.toml --only tunnels
# cargo shots docs/grade-shots.toml --only bridges,crossroads
# # …or, with a client that stays up between views, the MCP server's `view`
# # (`.claude/skills/shots/SKILL.md`).
#
# **Gate the subject, not the shot.** `--expect` is manifest-wide by design, and
# a group is a set of views of one thing — so the assertions that hold for every
# view in a group go on the command line beside `--only`, and the run exits
# non-zero with the measured value beside the failure:
#
# cargo shots docs/grade-shots.toml --only tunnels \
# --expect 'settled==true' --expect 'tunnel_count>0' \
# --expect 'basemap_open_tiles>0' --expect 'tunnel_road_m<=-6.0'
#
# Measured over the ring on the Deck, 2026-09-22: `tunnel_count` 45, `tunnel_road_m`
# −7.0, `basemap_open_tiles` 57–74 depending on where the camera stands.
#
# The last two are the pair that a picture cannot separate: `tunnel_road_m` says
# the carriageway is genuinely down there rather than a stripe painted on the
# grass, and `basemap_open_tiles` says the *raster* sheet has the hole too — cut
# only the vector ground and the tunnel opens onto a painted copy of the same map.
#
# **Every camera here was computed, not guessed.** The first version of this file
# was aimed by hand and half of it missed: one "bridge" view pointed north-west
# into the city centre with the viaduct behind the camera, and it photographed a
# perfectly nice piece of Groningen while saying nothing about a bridge. These
# positions come from the ways themselves — an Overpass query for `tunnel` and
# `bridge` highways over Groningen (2026-09-16), the bearing measured across the
# midpoint of each way, and the camera placed back along the direction it is to
# look in. A tunnel is viewed **along** its tunnel, which is the only angle that
# sees into an open cut; a bridge is viewed **across** its deck, which is the
# angle that shows it standing clear of what it crosses.
#
# **And the tunnel views aim with `look_at`, not with a pitch.** Computing the
# position is only half of it: what lands in frame is `altitude / tan(pitch)`
# metres ahead of a camera whose altitude is measured from the map anchor's
# ground, while the road stands on the measured ground somewhere else, so at the
# shallow angle a cut needs three metres of difference moves the aim thirty. This
# whole file was written before there was any way to ask for `look_at` — the
# harness has computed it since the day tunnels landed and neither a flag nor a
# manifest key reached it — which is why the three ring cameras it shipped with
# all missed the tunnel by 80 to 120 m. The targets below are `--dump-state`'s
# own `tunnel_entrance_lat`/`lng`, measured off the tile.
#
# **The fixture is not the tile these places are in, and that cost a round.** The
# checked-in `groningen_z14.mvt` is tile 8490/**5319**; the ring, the station and
# Julianaweg are in 8490–8492/5320–5321. Measuring the fixture and converting
# with the live tile's coordinates put two cameras several hundred metres out and
# produced a confident note saying Julianaweg was not in the data at all. It is:
# 127 m, half-width 5 m, reaching −3.21 m — exactly the "too short to reach full
# depth" case its description always claimed. Every target below was printed by
# `dump_the_fixture_bores` or `dump_the_bridge_decks` from a tile fetched by its
# own z/x/y, which is the only form of this that cannot be got wrong.
#
# Note this file did not parse at all until 2026-09-22 (`time`/`fog`/`clouds`/
# `rain` were not manifest keys and `deny_unknown_fields` refused the lot), so
# none of it had ever been run. `shot_presets::every_checked_in_manifest_loads`
# is the guard.
tile_url = "https://tiles.cartopolis.org/tiles/osm/{z}/{x}/{y}"
size = "1600x900"
out_dir = "gpu"
hide_ui = true
mode = "free"
# Mid-afternoon rather than noon: a seven-metre trench is most legible when the
# sun puts one of its walls in shadow, which is exactly what noon does not do.
time = 15.0
fog = 0.0
clouds = 0.0
rain = 0.0
settle = 3.0
# **180, not 90, and the extra minute is the approach grading.** A deck's height
# is measured from its own survey probe, so the decks resolve a few seconds after
# the cells they came with; the field then bakes a second time to grade the
# embankments, and that bake re-tessellates every streamer standing on the ground.
# Measured on the Deck 2026-09-22: the five high views settled inside 90 s and the
# four low ones over the densest part of the city did not. It is the price of
# grading to a height nobody has measured yet, and it is paid once per anchor.
wait = 180.0
# ─── Tunnels ────────────────────────────────────────────────────────────────
[[shot]]
group = "tunnels"
name = "tunnel-ring-portal-west"
description = "The south-western portal of Groningen's ring (Weg der Verenigde Naties), looking along the road in the direction of travel. Expect the carriageway to run down into the cut and go under, with a retaining wall either side — not to stop dead at the grass."
at = [53.205088, 6.574282, 45]
look_at = [53.205391, 6.575533]
[[shot]]
group = "tunnels"
name = "tunnel-ring-portal-east"
description = "The north-eastern portal of the same chain, 863 m away, looking back along it. The pair brackets the whole sunken road."
at = [53.209551, 6.583836, 45]
look_at = [53.209087, 6.582730]
[[shot]]
group = "tunnels"
name = "tunnel-ring-cutting-south"
description = "The 109 m open cutting between the first two lids, across the trench. This is the stretch the tunnel flag does *not* mark: until 2026-09-22 it was drawn as ordinary road on the ground between two decks seven metres below it, so the carriageway stepped 7 m at each end of it."
at = [53.206738, 6.575552, 80]
look_at = [53.205912, 6.576931]
[[shot]]
group = "tunnels"
name = "tunnel-ring-cutting-north"
description = "The 107 m cutting between the second and third lids. A second one in a different cell, so a fault that depends on the cell shows up as one of the two."
at = [53.208806, 6.579482, 80]
look_at = [53.207980, 6.580861]
[[shot]]
group = "tunnels"
name = "tunnel-ring-plan"
description = "The whole chain from above: lid, cutting, lid, cutting, lid. The one view that shows the road is continuous rather than a row of stubs, and the only one a depth cannot be read from — pair it with `tunnel_road_m`."
at = [53.207200, 6.579100, 420]
look = [-90.0, 68.0]
[[shot]]
group = "tunnels"
name = "tunnel-julianaweg"
description = "Julianaweg, 127 m of tagged road tunnel — shorter than two 120 m ramps, so `depth_for_run` reduces its depth rather than crossing the ramps over each other and it settles at 3.2 m. Expect a dip that sags and comes back up, not a tunnel: the honest answer for an underpass, and the one case the tiles cannot tell from a tunnel under a hill."
at = [53.204313, 6.567658, 45]
look_at = [53.203614, 6.566491]
[[shot]]
group = "tunnels"
name = "tunnel-underpass-cycle"
description = "A 73 m cycle underpass north of the station, at PATH_DEPTH_M and PATH_GRADE rather than the road's seven metres and 6 %. The narrow, shallow case: giving a path the road's depth is not merely too deep, it is the difference between a dip and nothing at all, because the ramp is derived from the depth and a short run never gets there."
at = [53.211321, 6.565462, 22]
look_at = [53.211235, 6.564649]
# ─── Bridges ────────────────────────────────────────────────────────────────
[[shot]]
group = "bridges"
name = "bridge-emmaviaduct"
description = "The Emmaviaduct over the rail yard, 100 x 258 m, seen across the deck — the measured-height case (bridge-heights.md puts it at 6.6 m). Expect a deck standing clear of the tracks with its approaches *climbing* to meet it, which is what the approach grading added on 2026-09-22 and what every earlier capture of this showed as a vertical step."
at = [53.205680, 6.559384, 110]
look_at = [53.207332, 6.562142]
[[shot]]
group = "bridges"
name = "bridge-laan-1940"
description = "Laan 1940-1945, the largest structure in the city at 384 x 332 m of deck, and the one where a wrong height or a missing embankment is most obvious because the error accumulates along the whole approach."
at = [53.207349, 6.544973, 180]
look_at = [53.211122, 6.544973]
[[shot]]
group = "bridges"
name = "bridge-eastring"
description = "The eastern ring's interchange, 408 x 217 m: two decks crossing, which is the case `DeckPlates::lift_at` takes the tallest for and the case an approach shared by two structures has to satisfy both of."
at = [53.219263, 6.589842, 170]
look_at = [53.219263, 6.595842]
[[shot]]
group = "bridges"
name = "bridge-beneluxweg"
description = "A 50 x 37 m deck on the same ring — the small, ordinary case, so a fault that only shows on a large structure is distinguishable from one that shows on every deck."
at = [53.213268, 6.598434, 70]
look_at = [53.214030, 6.599707]
# ─── Crossroads ─────────────────────────────────────────────────────────────
#
# Not grade separation, but the same machinery decides them: `road_stitch` cuts
# the ribbons against each other so no two cover the same ground, and
# `street_nodes` decides which arms are a junction and which merely cross. A
# junction that goes wrong looks like a flap of tarmac or a seam that flickers.
# These two are aimed by hand and were checked by eye, which is defensible for a
# junction: it has no direction to look along.
[[shot]]
group = "crossroads"
name = "crossroads-julianaplein"
description = "Julianaplein, where the ring, the Hereweg and the tunnel approaches all meet — the busiest junction in the city and the one with grade separation on three sides. Verified 2026-09-16: the ribbons cut against each other cleanly."
at = [53.2049288, 6.572469, 200]
look = [-55.0, -30.0]
[[shot]]
group = "crossroads"
name = "crossroads-europaplein"
description = "Europaplein: a large signalised junction on flat ground, so anything odd here is the ribbon cut rather than a height."
at = [53.2095754, 6.5842127, 180]
look = [-50.0, -60.0]