diff --git a/sourcespec/ssp_plot_stations.py b/sourcespec/ssp_plot_stations.py index 40496025..1bc44e0d 100644 --- a/sourcespec/ssp_plot_stations.py +++ b/sourcespec/ssp_plot_stations.py @@ -47,6 +47,10 @@ # Ignore Shapely deprecation warnings, since they depend on Cartopy from shapely.errors import ShapelyDeprecationWarning warnings.filterwarnings('ignore', category=ShapelyDeprecationWarning) + # Ignore shapely RuntimeWarnings. They are produced by Cartopy when + # plotting coastlines, but the result seems to be correct. + warnings.filterwarnings( + 'ignore', category=RuntimeWarning, module='shapely') TILER = { 'hillshade': EsriHillshade, 'hillshade_dark': EsriHillshadeDark,