From 6ddf5479ab9f16a37ad6f13f295a0f6e23e068b8 Mon Sep 17 00:00:00 2001 From: Andrew Annex Date: Tue, 14 Feb 2023 00:29:38 -0800 Subject: [PATCH] make terrainrgb interval and baseval floats to support more quantizers (#587) --- src/titiler/core/titiler/core/algorithm/dem.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/titiler/core/titiler/core/algorithm/dem.py b/src/titiler/core/titiler/core/algorithm/dem.py index e93faa4f9..95462adf4 100644 --- a/src/titiler/core/titiler/core/algorithm/dem.py +++ b/src/titiler/core/titiler/core/algorithm/dem.py @@ -128,8 +128,8 @@ class TerrainRGB(BaseAlgorithm): """Encode DEM into RGB (Mapbox Terrain RGB).""" # parameters - interval: int = 1 - baseval: int = -10000 + interval: float = 1.0 + baseval: float = -10000.0 # metadata input_nbands: int = 1