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)[源代码]#
- 参数:
desired_tile_form (optional) -- 我是RGB
style (optional) -- Google地图磁贴的样式。 “street”、“Satellite”、“terrain”和“only_streets”之一。 缩写为“街道”。
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'
- find_images(target_domain, target_z, start_tile=(0, 0, 0))#
目标域是原生坐标中的一个形状优美的多边形。
- tile_bbox(x, y, z, y0_at_north_pole=True)#
返回
(x0, x1), (y0, y1)
给定x、y、z磁贴位置的边界框。- 参数:
x -- Google磁贴编号系统中的x磁贴坐标。
y -- Google磁贴编号系统中的y磁贴坐标。
z -- Google磁贴编号系统中的z磁贴坐标。
y0_at_north_pole (optional) -- 布尔值表示y坐标的编号是否从北极开始(正如Google磁贴的惯例)(在这种情况下,它将从南极开始,正如TMS的惯例)。切换到True。
- tileextent(x_y_z)#
返回范围多元组
(x0,x1,y0,y1)
墨卡托坐标。