Skip to content

Commit

Permalink
hotfix:check geom type Feature in get_data_extract_url
Browse files Browse the repository at this point in the history
  • Loading branch information
nrjadkry authored and spwoodcock committed Jan 4, 2024
1 parent b418ba5 commit 02d2ff0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/app/projects/project_crud.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 02d2ff0

Please sign in to comment.