Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed splitting issue while using task splitting algorithm on drawn aoi #1024

Merged
merged 1 commit into from
Dec 4, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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