I create a Stamen terrain map with the country border from NaturalEarth.
Now I want to remove all the data (terrain in this case) from outside the country border.
How would I do that?
My example with the terrain visible inside and outside of Switzerland:
from cartopy.io import shapereader
import cartopy.io.img_tiles as cimgt
import cartopy.crs as ccrs
import geopandas
import matplotlib.pyplot as plt
resolution = '10m'
category = 'cultural'
name = 'admin_0_countries'
shpfilename = shapereader.natural_earth(resolution, category, name)
df = geopandas.read_file(shpfilename)
poly = [df.loc[df['ADMIN'] == 'Switzerland']['geometry'].values[0]]
stamen_terrain = cimgt.Stamen('terrain-background&#