Skip to content

Commit

Permalink
add dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentsarago committed Oct 16, 2023
1 parent 1bf6078 commit d177f15
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 2 additions & 0 deletions raster_api/runtime/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
long_description = f.read()

inst_reqs = [
"boto3",
"titiler.pgstac==0.8.0",
"titiler.extensions[cogeo]>=0.15.0,<0.16",
"starlette-cramjam>=0.3,<0.4",
"aws_xray_sdk>=2.6.0,<3",
"aws-lambda-powertools>=1.18.0",
]
Expand Down
11 changes: 9 additions & 2 deletions raster_api/runtime/src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,18 @@ async def lifespan(app: FastAPI):
###############################################################################
mosaic = MosaicTilerFactory(
router_prefix=f"{path_prefix}/mosaic",
add_mosaic_list=settings.enable_mosaic_search,
optional_headers=optional_headers,
environment_dependency=settings.get_gdal_config,
post_process=PostProcessParams,
process_dependency=PostProcessParams,
router=APIRouter(route_class=LoggerRouteHandler),
# add /list (default to False)
add_mosaic_list=settings.enable_mosaic_search,
# add /statistics [POST] (default to False)
add_statistics=True,
# add /map viewer (default to False)
add_viewer=False,
# add /bbox [GET] and /feature [POST] (default to False)
add_part=True,
)
app.include_router(mosaic.router, prefix=f"{path_prefix}/mosaic", tags=["Mosaic"])
# TODO
Expand Down

0 comments on commit d177f15

Please sign in to comment.