Enable governed GRB evolution
GeoIntel CI / docs-smoke (push) Canceled after 0s
GeoIntel CI / contract-smoke (push) Canceled after 0s

This commit is contained in:
Codex
2026-07-16 19:30:46 +02:00
parent 1d515e4901
commit a8b18942f5
12 changed files with 448 additions and 59 deletions
+5 -4
View File
@@ -236,11 +236,9 @@ def build_partition_features(
source_urls.append(source_url)
for source_feature in payload.get("features") or []:
bbox_feature_count += 1
feature_id = str(source_feature.get("id") or "")
feature_id = str(source_feature.get("id") or "").strip()
if not feature_id:
feature_id = hashlib.sha256(
json.dumps(source_feature.get("geometry"), sort_keys=True).encode("utf-8")
).hexdigest()
raise RuntimeError("GRB building feature is missing an official source identity")
if feature_id in seen_ids:
continue
seen_ids.add(feature_id)
@@ -661,6 +659,9 @@ def provision_dataset(
"feature_count": manifest["feature_count"],
"partition_count": len(partition_paths),
"partition_strategy": manifest["partition_strategy"],
"identity_stable": True,
"identity_scheme": "grb_ogc_feature_id",
"identity_prefixes": ["GBG."],
"selection_aggregation": {
"metric_key": "footprint_area",
"method": "intersection_area",