exactextract.feature

Classes

FeatureSource

Source from which polygon features can be read.

GDALFeatureSource

A FeatureSource using the GDAL/OGR Python interface to provide features.

JSONFeatureSource

A FeatureSource providing GeoJSON-like features.

GeoPandasFeatureSource

A FeatureSource using GeoPandas GeoDataFrame to provide features.

QGISFeatureSource

FeatureSource providing features from a QGIS vector layer.

Module Contents

class exactextract.feature.FeatureSource[source]

Source from which polygon features can be read.

Several implementations are included in exactextract:

class exactextract.feature.GDALFeatureSource(src)[source]

A FeatureSource using the GDAL/OGR Python interface to provide features.

Parameters:

src – one of the following - string or Path to a file/datasource that can be opened with GDAL/OGR - a gdal.Dataset - an ogr.DataSource - an ogr.Layer If the file has more than one layer, e.g., a GeoPackage, an ogr.Layer must be provided directly.

count()[source]
__iter__()[source]
srs_wkt()[source]
class exactextract.feature.JSONFeatureSource(src, *, srs_wkt=None)[source]

A FeatureSource providing GeoJSON-like features.

count()[source]
__iter__()[source]
srs_wkt()[source]
class exactextract.feature.GeoPandasFeatureSource(src)[source]

A FeatureSource using GeoPandas GeoDataFrame to provide features.

count()[source]
__iter__()[source]
srs_wkt()[source]
class exactextract.feature.QGISFeatureSource(src)[source]

FeatureSource providing features from a QGIS vector layer.

count()[source]
__iter__()[source]
srs_wkt()[source]