Playing with Cartopy and matplotlib: Pulling maps from different sources

earthCartopy

Matplotlib is a powerful library, and it can be combined with a number of other powerful Python features. Here I would like to play with the cartopy geographical library, using Ipython notebook and keeping all the images generated inline.

I am going to use two open data sources, one is the MapquestOSM, the other is a source from those in the cartopy gallery of examples.  I am going to take a different geographical extent from the cartopy gallery examples and I am going to add a few geographical points plotting them onto the charts in addition.

In order to add a bit of spice, I have defined a custom symbol to plot the known geo points on both images.

The two images here below are the resulting inline figures:

capriCartopyitalyCartopy

 

Leave a Reply