pysepal.mapping.raster_style#
Decide how a local raster is coloured when it is served as tiles.
Two ways to paint a raster, both returning the keyword arguments that
localtileserver.get_leaflet_tile_layer expects, so
add_raster() can pick one and stay a single code
path:
categorical, from an explicit
{class code: '#rrggbb'}mappingcontinuous, stretching a matplotlib colormap across the value range
Everything here is internal to add_raster.