Add governed buildings register snapshot
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user