From 02d2ff04b0bdd0e8622572564f9cf512d818c5c1 Mon Sep 17 00:00:00 2001 From: Niraj Adhikari Date: Mon, 18 Dec 2023 11:14:17 +0545 Subject: [PATCH] hotfix:check geom type Feature in get_data_extract_url --- src/backend/app/projects/project_crud.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/app/projects/project_crud.py b/src/backend/app/projects/project_crud.py index f60f058100..e8a240fb64 100644 --- a/src/backend/app/projects/project_crud.py +++ b/src/backend/app/projects/project_crud.py @@ -630,7 +630,7 @@ async def get_data_extract_url( shape(feature.get("geometry")) for feature in aoi.get("features", []) ] merged_geom = unary_union(geometries) - elif geom_type == "Feature": + elif geom_type := aoi.get("type") == "Feature": merged_geom = shape(aoi.get("geometry")) else: merged_geom = shape(aoi)