Add governed buildings register snapshot
GeoIntel CI / docs-smoke (push) Canceled after 0s
GeoIntel CI / contract-smoke (push) Canceled after 0s

This commit is contained in:
Codex
2026-07-15 16:56:08 +02:00
parent 48c0d21fed
commit 553e457b26
16 changed files with 1779 additions and 20 deletions
@@ -26,6 +26,7 @@ FULL_AREA_CLIPPED_OPERATOR_TOOLS = {
"provision_waterinfo_station_history.py",
"provision_mol_bwk_natura2000.py",
"provision_agricultural_parcel_history.py",
"provision_buildings_addresses_register.py",
}
@@ -144,6 +145,7 @@ class VectorFeatureService:
"agricultural": "agriculture",
"landbouw": "agriculture",
"landbouwgebruik": "agriculture",
"building_registry": "buildings",
}
for candidate in candidates:
if not isinstance(candidate, str) or not candidate.strip():
@@ -538,6 +540,10 @@ class VectorFeatureService:
is_estimate = bool(config.get("is_estimate", False))
if not is_estimate and config.get("warning_only_when_estimate", True):
warning = None
elif method == "feature_count" and (filter_property or dimension in {1, 2}):
metric_value = float(
db.query(func.count(VectorFeature.id)).filter(*metric_filter).scalar() or 0
)
elif method != "feature_count":
raise AppError(
code="INVALID_SELECTION_AGGREGATION",