tio_tiler.types
rio_tiler.types ¶
rio-tiler types.
ColorMapType
module-attribute
¶
ColorMapType = GDALColorMapType | DiscreteColorMapType | IntervalColorMapType
DiscreteColorMapType
module-attribute
¶
DiscreteColorMapType = dict[NumType, ColorTuple]
Discrete ColorMap, like GDALColorMapType but accept Float.
Matches only exact values for categorical data.
Example
{0.1: (0, 0, 0, 255), ...}
GDALColorMapType
module-attribute
¶
GDALColorMapType = dict[int, ColorTuple]
Continuous ColorMap Dict.
Expects 255 values, or it will be interpreted as a DiscreteColorMap.
Example
{1: (0, 0, 0, 255), ...}
IntervalColorMapType
module-attribute
¶
IntervalColorMapType = Sequence[tuple[IntervalTuple, ColorTuple]]
Intervals ColorMap.
Example
[((0, 1), (0, 0, 0, 0)), ...]
RIOResampling
module-attribute
¶
RIOResampling = Literal['nearest', 'bilinear', 'cubic', 'cubic_spline', 'lanczos', 'average', 'mode', 'gauss', 'rms']
RasterIO() resampling method.
ref: gdal.org/api/raster_c_api.html#_CPPv418GDALRIOResampleAlg
WarpResampling
module-attribute
¶
WarpResampling = Literal['nearest', 'bilinear', 'cubic', 'cubic_spline', 'lanczos', 'average', 'mode', 'max', 'min', 'med', 'q1', 'q3', 'sum', 'rms']
WarpKernel resampling method.
ref: gdal.org/en/stable/api/gdalwarp_cpp.html#_CPPv415GDALResampleAlg