Enable governed GRB evolution
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user