tasi.plotting.wms.BoundingboxPlotter#
- class tasi.plotting.wms.BoundingboxPlotter(extent, tile_provider, padding=0)[source]#
A specialization of the tilemapbase.Plotter to show tiles given a region as a boundingbox in UTM coordinates.
- __init__(extent, tile_provider, padding=0)[source]#
Create a plotter for the given extend and using the provided tile_provider
- Parameters:
extent (np.ndarray) – A 2*2 matrix as the 2-point definition of the region to plot.
tile_provider (ClassVar[BoundingboxTiles]) – The tile provider to use for fetching tiles
padding (int, optional) – An additional padding in meters around the given extend. Defaults to 0.
Methods
__init__(extent, tile_provider[, padding])Create a plotter for the given extend and using the provided tile_provider
as_one_image([allow_large])Use these settings to assemble tiles into a single image.
plot(ax[, position, zoom, show_attribution, ...])Draw the tile for the position position given by
positionwithin the current extend and and zoom into the tile according to zoom.plotlq(ax[, allow_large])Use these settings to plot the tiles to a matplotlib axes. This method repeatedly calls the imshow method, which does not lead to the highest quality tiling: compare with :method:`plot`.
Attributes
extentThe region in 2-point definition
extent_in_web_mercatorxtilemaxThe greatest x-coordinate in tilespace
xtileminThe smallest x-coordinate in tilespace
ytilemaxThe greatest y-coordinate in tilespace
ytileminThe smallest y-coordinate in tilespace
zoomThe actual zoom level to be used.