cartopy.feature.GSHHSFeature#

class cartopy.feature.GSHHSFeature(scale='auto', levels=None, **kwargs)[source]#

An interface to the GSHHS dataset.

See https://www.ngdc.noaa.gov/mgg/shorelines/gshhs.html

Parameters:
  • scale – The dataset scale. One of ‘auto’, ‘coarse’, ‘low’, ‘intermediate’, ‘high, or ‘full’ (default is ‘auto’).

  • levels – A list of integers 1-6 corresponding to the desired GSHHS feature levels to draw (default is [1] which corresponds to coastlines).

  • **kwargs – Keyword arguments to be used when drawing the feature. Defaults are edgecolor=’black’ and facecolor=’none’.

property crs#

The cartopy CRS for the geometries in this feature.

geometries()[source]#

Return an iterator of (shapely) geometries for this feature.

intersecting_geometries(extent)[source]#

Return an iterator of shapely geometries that intersect with the given extent. The extent is assumed to be in the CRS of the feature. If extent is None, the method returns all geometries for this dataset.

property kwargs#

The read-only dictionary of keyword arguments that are used when creating the Matplotlib artists for this feature.