Skip to content

Commit

Permalink
Merge pull request #1024 from hotosm/minor-fixes
Browse files Browse the repository at this point in the history
Fixed splitting issue while using task splitting algorithm on drawn aoi
  • Loading branch information
nrjadkry authored Dec 4, 2023
2 parents abb6b65 + dc0957d commit 74dbe0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backend/app/projects/project_crud.py
Original file line number Diff line number Diff line change
Expand Up @@ -700,15 +700,15 @@ async def split_multi_geom_into_tasks():
log.debug("Project boundary GeoJSON = Feature")
boundary_geoms = project_geojson["geometry"]
geom = await split_polygon_into_tasks(
db, project_id, boundary_data, no_of_buildings, has_data_extracts
db, project_id, boundary_geoms, no_of_buildings, has_data_extracts
)
split_geom_geojson.extend(geom)

elif project_geojson["type"] == "Polygon":
log.debug("Project boundary GeoJSON = Polygon")
boundary_geoms = project_geojson
geom = await split_polygon_into_tasks(
db, project_id, boundary_data, no_of_buildings, has_data_extracts
db, project_id, boundary_geoms, no_of_buildings, has_data_extracts
)
split_geom_geojson.extend(geom)

Expand Down

0 comments on commit 74dbe0d

Please sign in to comment.