Skip to content

Instantly share code, notes, and snippets.

@perrygeo
perrygeo / zonal_stats.py
Last active August 4, 2024 03:25
Python implementation of zonal statistics function. Optimized for dense polygon layers, uses numpy, GDAL and OGR to rival the speed of starspan.
"""
Zonal Statistics
Vector-Raster Analysis
Copyright 2013 Matthew Perry
Usage:
zonal_stats.py VECTOR RASTER
zonal_stats.py -h | --help
zonal_stats.py --version
@ingenieroariel
ingenieroariel / README
Created December 6, 2011 23:14
Update metadata from a excel file in a GeoNode site.
pip install xlrd
python metadata.py mymetadata.xls