cartopy.io.shapereader.FionaReader#

class cartopy.io.shapereader.FionaReader(filename, bbox=None, **kwargs)[source]#

Provides an interface for accessing the contents of a shapefile with the fiona library, which has a much faster reader than PyShp. See fiona.open for additional information on supported kwargs.

The primary methods used on a FionaReader instance are records() and geometries().

geometries()[source]#

Returns an iterator of shapely geometries from the shapefile.

This interface is useful for accessing the geometries of the shapefile where knowledge of the associated metadata is desired. In the case where further metadata is needed use the records() interface instead, extracting the geometry from the record with the geometry() method.

records()[source]#

Returns an iterator of FionaRecord instances.