fix: preserve official Mol CRS provenance
This commit is contained in:
@@ -39,6 +39,7 @@ DEFAULT_OUTPUT_DIR = Path("/app/storage/operator-data/mol-municipality")
|
||||
DEFAULT_API_URL = "http://127.0.0.1:8000"
|
||||
DEFAULT_PAGE_LIMIT = 1000
|
||||
DEFAULT_MAX_FEATURES = 100000
|
||||
GEOJSON_CRS = {"type": "name", "properties": {"name": "EPSG:4326"}}
|
||||
|
||||
|
||||
def parse_args() -> argparse.Namespace:
|
||||
@@ -336,6 +337,7 @@ def prepare_artifacts(args: argparse.Namespace) -> tuple[Path, Path, dict[str, A
|
||||
boundary_payload = {
|
||||
"type": "FeatureCollection",
|
||||
"name": "Official municipality boundary - Mol",
|
||||
"crs": GEOJSON_CRS,
|
||||
"features": [boundary_feature],
|
||||
"source": "Digitaal Vlaanderen VRBG OGC API Features collection Refgem",
|
||||
"source_url": boundary_source_url,
|
||||
@@ -348,6 +350,7 @@ def prepare_artifacts(args: argparse.Namespace) -> tuple[Path, Path, dict[str, A
|
||||
buildings_payload = {
|
||||
"type": "FeatureCollection",
|
||||
"name": "GRB buildings - complete municipality Mol",
|
||||
"crs": GEOJSON_CRS,
|
||||
"features": buildings,
|
||||
"source": "Digitaal Vlaanderen GRB OGC API Features collection GBG",
|
||||
"source_url": building_summary["source_urls"][0],
|
||||
@@ -567,10 +570,14 @@ def provision_workspace(
|
||||
)
|
||||
|
||||
return {
|
||||
"project": project,
|
||||
"area": area,
|
||||
"boundary_dataset": boundary_dataset,
|
||||
"building_dataset": building_dataset,
|
||||
"project_id": project_id,
|
||||
"project_name": project.get("name"),
|
||||
"area_id": area_id,
|
||||
"area_name": area.get("name"),
|
||||
"boundary_dataset_id": str(boundary_dataset["id"]),
|
||||
"boundary_feature_count": boundary_dataset.get("feature_count"),
|
||||
"building_dataset_id": str(building_dataset["id"]),
|
||||
"building_feature_count": building_dataset.get("feature_count"),
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user