perf: optimize trusted full-area analysis
This commit is contained in:
@@ -255,6 +255,7 @@ def build_snapshot(
|
||||
"scope_type": scope.scope_type,
|
||||
"member_count": len(scope.members),
|
||||
"member_nis_codes": list(scope.nis_codes),
|
||||
"geometry_clipped_to_area": True,
|
||||
"observation_year": year,
|
||||
"missing_population_sector_count": missing_population,
|
||||
"attribution": ATTRIBUTION,
|
||||
@@ -301,6 +302,7 @@ def upload_snapshot(
|
||||
"scope_display_name": scope.display_name,
|
||||
"member_count": len(scope.members),
|
||||
"member_nis_codes": list(scope.nis_codes),
|
||||
"geometry_clipped_to_area": True,
|
||||
"attribution": ATTRIBUTION,
|
||||
"license": "CC BY 4.0",
|
||||
"temporal_series_label": "Officiële bevolkingscijfers per statistische sector",
|
||||
@@ -320,6 +322,7 @@ def upload_snapshot(
|
||||
"operator_tool": "provision_mol_population_history.py",
|
||||
"operator_explicit_fetch": True,
|
||||
"scope_key": scope.key,
|
||||
"geometry_clipped_to_area": True,
|
||||
"sector_geometry_url": SECTOR_URL.format(year=year),
|
||||
"population_url": POPULATION_URLS[year],
|
||||
"generated_at": datetime.now(timezone.utc).isoformat(),
|
||||
|
||||
@@ -788,6 +788,7 @@ def build_source_metadata(args: argparse.Namespace, snapshot: PreparedSnapshot)
|
||||
"authority_level": "authoritative",
|
||||
"coverage_scope": args.scope_key,
|
||||
**identity,
|
||||
"geometry_clipped_to_area": True,
|
||||
"attribution": ATTRIBUTION,
|
||||
"license_note": "Publieke Vlaamse overheidsdata; raadpleeg de toegangs- en gebruiksvoorwaarden in de bronmetadata.",
|
||||
"methodology_version": "3",
|
||||
@@ -815,6 +816,7 @@ def build_provenance_metadata(args: argparse.Namespace, snapshot: PreparedSnapsh
|
||||
return {
|
||||
"operator_tool": "provision_official_landuse_timeseries.py",
|
||||
"operator_explicit_fetch": True,
|
||||
"geometry_clipped_to_area": True,
|
||||
"wcs_url": WCS_URL,
|
||||
"wcs_version": WCS_VERSION,
|
||||
"coverage_id": coverage_id(snapshot.year),
|
||||
|
||||
@@ -657,6 +657,7 @@ def provision_dataset(
|
||||
"scope_limitation": scope.limitation_message,
|
||||
"member_count": len(scope.members),
|
||||
"member_nis_codes": list(scope.nis_codes),
|
||||
"geometry_clipped_to_area": True,
|
||||
"feature_count": manifest["feature_count"],
|
||||
"partition_count": len(partition_paths),
|
||||
"partition_strategy": manifest["partition_strategy"],
|
||||
@@ -671,6 +672,7 @@ def provision_dataset(
|
||||
provenance_metadata = {
|
||||
"operator_tool": "provision_regional_grb_buildings.py",
|
||||
"operator_explicit_fetch": True,
|
||||
"geometry_clipped_to_area": True,
|
||||
"manifest_path": str(manifest_path),
|
||||
"source_url": GRB_GBG_ITEMS_URL,
|
||||
"artifact_sha256": manifest["artifact_sha256"],
|
||||
|
||||
@@ -716,6 +716,7 @@ def provision_dataset(
|
||||
"layer_limitation": definition.limitation_message,
|
||||
"member_count": len(scope.members),
|
||||
"member_nis_codes": list(scope.nis_codes),
|
||||
"geometry_clipped_to_area": True,
|
||||
"feature_count": manifest["feature_count"],
|
||||
"partition_count": len(partition_paths),
|
||||
"partition_strategy": manifest["partition_strategy"],
|
||||
@@ -730,6 +731,7 @@ def provision_dataset(
|
||||
provenance_metadata = {
|
||||
"operator_tool": "provision_regional_grb_context.py",
|
||||
"operator_explicit_fetch": True,
|
||||
"geometry_clipped_to_area": True,
|
||||
"manifest_path": str(manifest_path),
|
||||
"source_urls": manifest["grb_source_urls"],
|
||||
"artifact_sha256": manifest["artifact_sha256"],
|
||||
|
||||
Reference in New Issue
Block a user