/usr/lib/python2.7/dist-packages/cartopy/examples/image_tiles.py is in python-cartopy 0.14.2+dfsg1-2build3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | __tags__ = ['Web services']
"""
Web tile imagery
----------------
This example demonstrates how imagery from a tile
providing web service can be accessed.
"""
import matplotlib.pyplot as plt
from cartopy.io.img_tiles import StamenTerrain
def main():
tiler = StamenTerrain()
mercator = tiler.crs
ax = plt.axes(projection=mercator)
ax.set_extent([-90, -73, 22, 34])
ax.add_image(tiler, 6)
ax.coastlines('10m')
plt.show()
if __name__ == '__main__':
main()
|