From 77f45cde4af640f5b08d7ef66d92a2749724f47c Mon Sep 17 00:00:00 2001 From: Pradip-p Date: Wed, 30 Oct 2024 16:00:46 +0545 Subject: [PATCH] fix: added options dsm true only --- src/backend/app/projects/image_processing.py | 3 ++- src/backend/app/projects/project_routes.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/backend/app/projects/image_processing.py b/src/backend/app/projects/image_processing.py index 263ba7eb..c44723c9 100644 --- a/src/backend/app/projects/image_processing.py +++ b/src/backend/app/projects/image_processing.py @@ -102,7 +102,8 @@ def process_new_task( :return: The created task object. """ opts = self.options_list_to_dict(options) - + # FIXME: take this from the function above + opts = {"dsm": True} task = self.node.create_task( images, opts, name, progress_callback, webhook=webhook ) diff --git a/src/backend/app/projects/project_routes.py b/src/backend/app/projects/project_routes.py index 67fc8b4b..44360d9a 100644 --- a/src/backend/app/projects/project_routes.py +++ b/src/backend/app/projects/project_routes.py @@ -587,7 +587,7 @@ async def odm_webhook( tags=["Image Processing"], ) async def get_orthophoto_tile( - user_data: Annotated[AuthUser, Depends(login_required)], + # user_data: Annotated[AuthUser, Depends(login_required)], project_id: str, task_id: str, z: int, @@ -613,6 +613,7 @@ async def get_orthophoto_tile( return Response(content=tile, media_type="image/png") except TileOutsideBounds: + return [] raise HTTPException( status_code=200, detail="Tile is outside the bounds of the image." )