Skip to content
LITHOEN

Evidence platform and governance

Document

ADR-0023: A static atlas, and no Python toolchain yet

Repository path
docs/decisions/ADR-0023-static-atlas-python-deferred.md
Size · SHA-256
2.4 KB · c5d1a6ca8a35121504065542ffc6a66aa668c5a4f13b0b704fb4fc31fb085bbf

Status: accepted (2026-09-07)

Two deferrals, for the same reason

Interactive mapping

Phase 4 built the spatial pipeline and static cartography, and deferred interactive mapping.

The corpus is 76 representations from one plate model. An interactive map of it would show what every plate map on the internet already shows; the thing Lithoen adds is the provenance — role, boundary certainty, source scale, transformation history — and that reads better as text beside the figure than as a tooltip inside it. Adding MapLibre now would ship a map library to justify a decision already made.

Revisit when:

  1. The corpus holds geometry from more than one independent source for the same regions, so that a reader has competing interpretations to switch between. That is the first thing an interactive map would do better than a static one.
  2. Region coverage is broad enough that panning is how a reader finds things, rather than following a link.
  3. Geometry exists at a scale where zooming reveals detail rather than only enlarging a line.

When it happens: code-split to the atlas route only, no geometry on article or entity routes, data from the publication-safe projection only, no proprietary API, visible attribution, keyboard navigation, and the current table kept as the non-visual equivalent.

Python

Phase 4 is the first phase where a GIS toolchain could have been justified. It was evaluated and refused.

What Phase 4 actually needed: read GeoJSON, validate geometry, simplify reproducibly, checksum. All four are in @lithoen/geospatial, tested, and deterministic. Reprojection — the one operation that genuinely needs pyproj and must never be hand-rolled — was not needed, because the source publishes in EPSG:4326 and Lithoen stores EPSG:4326.

Adding Python would have meant a second environment to lock, a second place where record shape is known, and a second language in the ingestion path, in exchange for nothing.

Introduce it when reprojection, topology-preserving simplification across shared edges, or a format Lithoen cannot read natively becomes necessary. Then: tools/geospatial/, a locked deterministic environment, CLI operations rather than notebooks, offline only, never in a request path, and TypeScript remains the schema authority — Python output must still pass the same Zod validation as everything else.