From e26eb1e3638e98bbd66a5250b5a0da1af244067b Mon Sep 17 00:00:00 2001 From: smohiudd Date: Sat, 14 Jan 2023 20:13:10 -0700 Subject: [PATCH] cog validate env session --- raster_api/runtime/src/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/raster_api/runtime/src/app.py b/raster_api/runtime/src/app.py index f3b9f945..e5d0c23a 100644 --- a/raster_api/runtime/src/app.py +++ b/raster_api/runtime/src/app.py @@ -80,7 +80,7 @@ def cog_validate( strict: bool = Query(False, description="Treat warnings as errors"), ): """Validate a COG""" - return rio_cogeo_info(src_path, strict=strict) + return rio_cogeo_info(src_path, strict=strict, config=settings.get_gdal_config()) @cog.router.get("/viewer", response_class=HTMLResponse)