Cartopy自带的底图是有Google、MapQuest、Stamen、Mapbox、Quadtree等多家图层服务,提供影像、矢量和地形图,可作为绘图时的底图。可以在img_tiles.py文件中查看具体的实现形式。如:
GoogleWTS:
class GoogleWTS(metaclass=ABCMeta):
"""
Implement web tile retrieval using the Google WTS coordinate system.
A "tile" in this class refers to the coordinates (x, y, z).
The tiles can be saved to a cache directory using the cache parameter, so
they are downloaded only once. If it is set to True, the default path
stored in the cartopy.config dictionary is used. If it is set to a custom
path, this path is used instead of the default one. If it is set to False
(the default behavior), the tiles are downloaded each time.
"""
MapQuestOSM:
class MapQuestOSM(GoogleWTS):
# https://developer.mapquest.com/web/products/open/map for terms of use
# https://devblog