This PR creates the facilities to generate dynamic raster styles.
They will for now exist in conjunction with the previous hardcoded color ramps.
It introduces RasterStyle and RasterStyleColorEntry as models and general concepts. Raster styles are of either type: ramp, intervals or values, which allows continuous smooth with interpolation, fixed colors with cutoffs or only rendering of the specified values and discarding everything else.
Raster styles are associated with Browse Types and are selected via the style parameter in WMS.
This PR comes with models, migrations, admin and CLI tools to interact with the new data.
Missing:
[x] Tests
[x] Documentation
[x] Linking of RasterStyle to BrowseType via a through model
Fixes #565
This PR creates the facilities to generate dynamic raster styles.
They will for now exist in conjunction with the previous hardcoded color ramps.
It introduces
RasterStyle
andRasterStyleColorEntry
as models and general concepts. Raster styles are of either type:ramp
,intervals
orvalues
, which allows continuous smooth with interpolation, fixed colors with cutoffs or only rendering of the specified values and discarding everything else.Raster styles are associated with Browse Types and are selected via the
style
parameter in WMS.This PR comes with models, migrations, admin and CLI tools to interact with the new data.
Missing:
RasterStyle
toBrowseType
via athrough
model