Skip to content

Commit

Permalink
feat: added multipolygon_to_polygon in no_fly_zones
Browse files Browse the repository at this point in the history
  • Loading branch information
Pradip-p committed Jul 13, 2024
1 parent e1d7000 commit 53a4b73
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/backend/app/projects/project_schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

from app.utils import (
geojson_to_geometry,
multipolygon_to_polygon,
read_wkb,
merge_multipolygon,
str_to_geojson,
Expand Down Expand Up @@ -52,7 +53,7 @@ def no_fly_zones(self) -> Optional[Any]:
if not self.outline_no_fly_zones:
return None

outline = merge_multipolygon(self.outline_no_fly_zones)
outline = multipolygon_to_polygon(self.outline_no_fly_zones)
return geojson_to_geometry(outline)

@computed_field
Expand Down
1 change: 1 addition & 0 deletions src/backend/app/utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import logging
import geojson
from geojson import Feature
import requests
import shapely
from datetime import datetime, timezone
Expand Down

0 comments on commit 53a4b73

Please sign in to comment.