cartopy.io.img_tiles.QuadtreeTiles#
- class cartopy.io.img_tiles.QuadtreeTiles(desired_tile_form='RGB', user_agent='CartoPy/0.22.0', cache=False)[source]#
Implement web tile retrieval using the Microsoft WTS quadkey coordinate system.
A “tile” in this class refers to a quadkey such as “1”, “14” or “141” where the length of the quatree is the zoom level in Google Tile terms.
- find_images(target_domain, target_z, start_tile=None)[source]#
Find all the quadtrees at the given target zoom, in the given target domain.
target_z must be a value >= 1.
- tile_bbox(x, y, z, y0_at_north_pole=True)#
Return the
(x0, x1), (y0, y1)
bounding box for the given x, y, z tile position.- Parameters:
x – The x tile coordinate in the Google tile numbering system.
y – The y tile coordinate in the Google tile numbering system.
z – The z tile coordinate in the Google tile numbering system.
y0_at_north_pole (optional) – Boolean representing whether the numbering of the y coordinate starts at the north pole (as is the convention for Google tiles) or not (in which case it will start at the south pole, as is the convention for TMS). Defaults to True.