Skip to content

rio_tiler.errors

rio_tiler.errors

Errors and warnings.

AlphaBandWarning

Bases: UserWarning

Automatically removed Alpha band from output array.

AssetAsBandError

Bases: RioTilerError

Can't use asset_as_band with multiple bands.

ColorMapAlreadyRegistered

Bases: RioTilerError

ColorMap is already registered.

EmptyMosaicError

Bases: RioTilerError

Mosaic method returned empty array.

ExpressionMixingWarning

Bases: UserWarning

Expression and assets/indexes mixing.

InvalidAssetName

Bases: RioTilerError

Invalid Asset name.

InvalidBandName

Bases: RioTilerError

Invalid band name.

InvalidBufferSize

Bases: RioTilerError

buffer must be a multiple of 0.5 (e.g: 0.5, 1, 1.5, ...).

InvalidColorFormat

Bases: RioTilerError

Invalid color format.

InvalidColorMapName

Bases: RioTilerError

Invalid colormap name.

InvalidDatatypeWarning

Bases: UserWarning

Invalid Output Datatype.

InvalidExpression

Bases: RioTilerError

Invalid Expression.

InvalidFormat

Bases: RioTilerError

Invalid image format.

InvalidGeographicBounds

Bases: RioTilerError

Invalid Geographic bounds.

InvalidMosaicMethod

Bases: RioTilerError

Invalid Pixel Selection method for mosaic.

InvalidPointDataError

Bases: RioTilerError

Invalid PointData.

MissingAssets

Bases: RioTilerError

Missing Assets.

MissingBands

Bases: RioTilerError

Missing bands.

MissingCRS

Bases: RioTilerError

Dataset doesn't have CRS information.

NoOverviewWarning

Bases: UserWarning

Dataset has no overviews.

PointOutsideBounds

Bases: RioTilerError

Point is outside image bounds.

RioTilerError

Bases: Exception

Base exception class.

TileOutsideBounds

Bases: RioTilerError

Z-X-Y Tile is outside image bounds.