Skip to content

Commit bfa9b6f

Browse files
authored
fix(raster-api): update colormaps to include additional custom colormaps (#465)
2 parents 4480b3a + 6088b05 commit bfa9b6f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

raster_api/runtime/src/app.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from src.algorithms import PostProcessParams
77
from src.alternate_reader import PgSTACReaderAlt
88
from src.config import ApiSettings
9-
from src.dependencies import ColorMapParams
9+
from src.dependencies import ColorMapParams, cmap
1010
from src.extensions import stacViewerExtension
1111
from src.monitoring import LoggerRouteHandler, logger, metrics, tracer
1212
from src.version import __version__ as veda_raster_version
@@ -206,6 +206,8 @@ async def lifespan(app: FastAPI):
206206
# Colormaps endpoints
207207
###############################################################################
208208
cmaps = ColorMapFactory()
209+
# Set supported colormaps to be the modified cmap list with added colormaps
210+
cmaps.supported_colormaps = cmap
209211
app.include_router(cmaps.router, tags=["ColorMaps"])
210212

211213

0 commit comments

Comments
 (0)