mapchete.formats.default.mapchete_input module

Use another Mapchete process as input.

class mapchete.formats.default.mapchete_input.InputData(input_params, **kwargs)

Bases: InputData

Main input class.

Parameters
input_paramsdictionary

driver specific parameters

Attributes
pathstring

path to Mapchete file

pixelbufferinteger

buffer around output tiles

pyramidtilematrix.TilePyramid

output TilePyramid

crsrasterio.crs.CRS

object describing the process coordinate reference system

sridstring

spatial reference ID of CRS (e.g. “{‘init’: ‘epsg:4326’}”)

METADATA = {'data_type': None, 'driver_name': 'Mapchete', 'file_extensions': ['mapchete'], 'mode': 'r'}
bbox(out_crs=None)

Return data bounding box.

Parameters
out_crsrasterio.crs.CRS

rasterio CRS object (default: CRS of process pyramid)

Returns
bounding boxgeometry

Shapely geometry object

open(tile, **kwargs)

Return InputTile object.

Parameters
tileTile
Returns
input tileInputTile

tile view of input data