cartopy.io.img_tiles.GoogleTiles#
- class cartopy.io.img_tiles.GoogleTiles(desired_tile_form='RGB', style='street', url='https://mts0.google.com/vt/lyrs={style}@177000000&hl=en&src=api&x={x}&y={y}&z={z}&s=G', cache=False)[source]#
- __init__(desired_tile_form='RGB', style='street', url='https://mts0.google.com/vt/lyrs={style}@177000000&hl=en&src=api&x={x}&y={y}&z={z}&s=G', cache=False)[source]#
- Parameters:
desired_tile_form (optional) – Defaults to ‘RGB’.
style (optional) – The style for the Google Maps tiles. One of ‘street’, ‘satellite’, ‘terrain’, and ‘only_streets’. Defaults to ‘street’.
url (optional) – URL pointing to a tile source and containing {x}, {y}, and {z}. Such as:
'https://server.arcgisonline.com/ArcGIS/rest/services/World_Shaded_Relief/MapServer/tile/{z}/{y}/{x}.jpg'
Methods
__init__
([desired_tile_form, style, url, cache])- param desired_tile_form:
Defaults to 'RGB'.
find_images
(target_domain, target_z[, ...])Target domain is a shapely polygon in native coordinates.
get_image
(tile)image_for_domain
(target_domain, target_z)subtiles
(x_y_z)tile_bbox
(x, y, z[, y0_at_north_pole])Return the
(x0, x1), (y0, y1)
bounding box for the given x, y, z tile position.tileextent
(x_y_z)Return extent tuple
(x0,x1,y0,y1)
in Mercator coordinates.