cartopy.io.img_tiles.QuadtreeTiles#

class cartopy.io.img_tiles.QuadtreeTiles(desired_tile_form='RGB', user_agent='CartoPy/0.24.1', cache=False)[源代码]#

使用Microsoft WTS四键坐标系实现Web平铺检索。

此类中的“磁贴”指的是“1”、“14”或“141”等四元键,其中四元树的长度是Google磁贴术语中的缩放级别。

find_images(target_domain, target_z, start_tile=None)[源代码]#

在给定目标域中查找给定目标缩放处的所有四叉树。

目标_z必须是一个值>= 1。

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(quadkey)[源代码]#

返回范围多元组 (x0,x1,y0,y1) 墨卡托坐标。