fix: make vector ingestion canonical and atomic
GeoIntel CI / docs-smoke (push) Canceled after 0s
GeoIntel CI / contract-smoke (push) Canceled after 0s

This commit is contained in:
Codex
2026-07-14 15:28:14 +02:00
parent 7fa4f1fac9
commit 8c694fa9ce
8 changed files with 145 additions and 25 deletions
@@ -117,6 +117,24 @@ def test_parse_geojson_payload_returns_vector_metadata() -> None:
assert metadata["approximate_area_m2"] >= 0.0
def test_parse_geojson_payload_reports_z_dimension_for_canonical_2d_storage() -> None:
metadata = geojson_service.parse_geojson_payload(
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"geometry": {"type": "Point", "coordinates": [5.08, 51.18, 0.0]},
"properties": {},
}
],
}
)
assert metadata["z_dimension_feature_count"] == 1
assert metadata["canonical_storage_dimension"] == "2D"
def test_parse_geojson_payload_rejects_invalid_geometry() -> None:
payload = {
"type": "FeatureCollection",