def __init__(self, tile, pixelbuffer=0): """Initialize.""" if isinstance(tile, BufferedTile): tile = TilePyramid(tile.tp.grid, tile_size=tile.tp.tile_size, metatiling=tile.tp.metatiling).tile(*tile.id) Tile.__init__(self, tile.tile_pyramid, tile.zoom, tile.row, tile.col) self._tile = tile self.pixelbuffer = pixelbuffer
def __init__(self, tile, pixelbuffer=0): """Initialize.""" assert not isinstance(tile, BufferedTile) Tile.__init__(self, tile.tile_pyramid, tile.zoom, tile.row, tile.col) self._tile = tile self.pixelbuffer = pixelbuffer self.data = None self.message = None self.error = None
def __init__(self, mapchete, tile, pixelbuffer=0, resampling="nearest"): self.tile_pyramid = mapchete.tile_pyramid Tile.__init__(self, self.tile_pyramid, tile.zoom, tile.row, tile.col) self.process = mapchete self.config = mapchete.config.at_zoom(tile.zoom) self.output = mapchete.output self.nodata = self.output.nodataval self.indexes = self.output.bands self.dtype = self.output.dtype self.path = self._get_path()