exactextract.feature
Classes
Source from which polygon features can be read. |
|
A FeatureSource using the GDAL/OGR Python interface to provide features. |
|
A FeatureSource providing GeoJSON-like features. |
|
A FeatureSource using GeoPandas GeoDataFrame to provide features. |
|
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
- anogr.DataSource
- anogr.Layer
If the file has more than one layer, e.g., a GeoPackage, anogr.Layer
must be provided directly.
- class exactextract.feature.JSONFeatureSource(src, *, srs_wkt=None)[source]
A FeatureSource providing GeoJSON-like features.