Skip to content

Commit

Permalink
fix: added options dsm true only
Browse files Browse the repository at this point in the history
  • Loading branch information
Pradip-p committed Oct 30, 2024
1 parent 496c0b0 commit 77f45cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/backend/app/projects/image_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down
3 changes: 2 additions & 1 deletion src/backend/app/projects/project_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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."
)
Expand Down

0 comments on commit 77f45cd

Please sign in to comment.