Fast and accurate raster zonal statistics extraction from rasters using polygon geometries. Version 0.3.0 (pre-1.0), active development. Monthly or quarterly releases.
pip install exactextractNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Extract zonal statistics from a raster using polygon geometries.
Load raster using rasterio.open() and pass the array and transform directly.
Ensure vector geometries are reprojected to match the raster CRS using geopandas.to_crs() before calling exact_extract.
Use `from exactextract import exact_extract` instead.
Run `pip install exactextract` in the target Python environment.
Reproject the vector features to match the raster CRS using gdf = gdf.to_crs(raster_crs).
Upgrade to exactextract >=0.2.0: `pip install --upgrade exactextract`.