Evidence platform and governance
Document
ADR-0008: Minimal geospatial primitives now; PostGIS later
- Repository path
- docs/decisions/ADR-0008-geospatial-minimal-postgis-later.md
- Size · SHA-256
- 941 B · 59f1b963468e045119a603edaa6a7018fe9424d96279666913adfa7b8437c7b9
Status: accepted (2026-09-06)
Context
Faults, boundaries, basins and rasters will eventually need real geometry and spatial queries — but Phase 0 needs only to locate entities.
Decision
@lithoen/geospatial provides WGS 84 (EPSG:4326) points, non-antimeridian-crossing
bounding boxes, and a GeometryReference that points at external GeoJSON/WKT rather than
embedding geometry. Semantics deliberately match GeoJSON/PostGIS so the future migration
(FUTURE_MIGRATIONS.md A) changes storage, not meaning. No map libraries in Phase 0.
Consequences
- Entities can carry coordinates today with zero dependency weight. (The Phase 0 seed ships none: no coordinates were verified from retrieved sources, and unverified coordinates would violate SOURCE_POLICY.md.)
- The antimeridian limitation is explicit and tested; features needing it wait for real geometry.