rasterstats
Summarize raster data over vector zones, with Python API and rio CLI subcommands.
BSD-3-Clause
About
rasterstats computes summary statistics of raster bands over vector geometries, such as the mean elevation of each polygon in a DEM. It also provides interpolated point queries for rasters that have no zonal statistics of their own, and ships as rio CLI subcommands that pipe GeoJSON between tools. Statistics are computed with Rasterio and GDAL.
Features
- Zonal statistics of raster bands over vector geometries
- Interpolated point queries where bands lack statistics
- rio zonalstats and rio pointquery CLI subcommands
- GeoJSON input and output for shell pipelines
- User-defined statistics via custom callbacks
- Handles categorical rasters and mini-rasters
Screenshot
Related tools
GeoDjango
Django's geographic web framework for spatial models, queries, and GIS web apps.
deck.gl
WebGL-powered framework for visual exploratory data analysis of large datasets.
QGIS
Free and open-source cross-platform desktop GIS. Create, edit, visualize, analyze and publish geospatial data.
OpenLayers
High-performance, feature-packed library for creating interactive maps on the web.