--- id: exactextract version: "0.3.0" license: Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for… (full text in the JSON record) license_treatment: permissive maintenance: active --- # exactextract — Fast and accurate raster zonal statistics License: permissive · Maintenance: active · Downloads: 183.5K/mo ## What it is and what it does exactextract is a Python wrapper around a C++ library for computing zonal statistics—the task of summarizing raster pixel values that fall within polygon boundaries. It is commonly used in geospatial analysis to aggregate satellite imagery, digital elevation models, or other gridded data by administrative regions, study areas, or other polygon features. The package depends only on numpy and is available as precompiled wheels for modern Python versions (3.9–3.13) across macOS, Windows, and Linux, making installation straightforward on most systems. The core use case is fast, accurate extraction of statistics (mean, sum, count, etc.) from raster cells that intersect with polygon geometries. Because it is implemented in C++, it is designed to handle large rasters and many polygons efficiently. The package is actively maintained, with no known security vulnerabilities, and is licensed under Apache 2.0, permitting commercial and private use. Use it for: - Aggregate satellite imagery (NDVI, temperature, precipitation) by administrative boundaries or study polygons. - Extract elevation statistics (mean, min, max) from digital elevation models within watershed or land-parcel polygons. - Summarize land-cover classification rasters by region to compute area fractions or dominant class per polygon. - Compute zonal means or sums of climate or environmental grids for spatial analysis and modeling. - Batch process large raster datasets with many polygons where performance and accuracy are critical. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. exactextract computes zonal statistics—fast summaries of raster values within polygon boundaries—using a C++ implementation exposed to Python with numpy arrays. Yes. exactextract is a specialized, actively maintained tool for a well-defined geospatial task. It has no known vulnerabilities, a permissive license, minimal dependencies (numpy only), and precompiled wheels for all common platforms and Python versions. Install it if you need fast, accurate zonal statistics; skip it if your workflow uses simpler raster operations or if you are not working with polygon-raster overlays. ## Install pip install exactextract uv add exactextract poetry add exactextract ## Installing exactextract Before you install: Medium friction: precompiled wheels available for Python 3.9–3.13 on macOS (arm64, x86_64), Windows (32-bit, 64-bit, arm64), and Linux (manylinux). Last release 256 days ago; repository active with recent commits. License in practice: Apache License 2.0 is permissive: you may use, modify, and distribute the package freely in commercial or private projects, provided you include a copy of the license and note any changes you make. Quickstart: import exactextract import numpy as np # Requires raster data (e.g., from rasterio) and polygon geometry # exactextract.exact_extract(raster, polygons, operations=['mean', 'sum']) Requires raster and polygon data in a compatible format (typically from rasterio, geopandas, or similar geospatial libraries); the package itself handles numpy arrays but does not provide data loading. Verify before relying: - Specific raster formats and polygon geometry types supported by the package API. - Whether the package includes command-line interface bindings in the Python distribution. - Performance benchmarks or accuracy claims compared to alternative zonal statistics implementations. ## Package facts - License: Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for… (full text in the JSON record) (permissive) - Python support: supports_current - Install friction: medium - Maintenance: active - Downloads: 183.5K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags zonal statistics raster polygon, raster value summarization, polygon raster overlay statistics, fast raster extraction, geospatial raster analysis, raster clip and summarize, polygon coverage raster stats, geospatial, raster-analysis, gis [View on SkillFed](https://skillfed.io/packages/exactextract) · [View on PyPI](https://pypi.org/project/exactextract/)