[gdal-dev] zonal statistics with gdal

Jose Gomez-Dans jgomezdans at gmail.com
Wed Jun 20 06:58:12 PDT 2012


Hi,

<forgot to send it to the list>

On 19 June 2012 17:37, jdmorgan <jdmorgan at unca.edu> wrote:
> Is there a way to do something along the lines of zonal statistics with
> gdal.  Basically, I have a county shape file and a classified raster
> dataset.  I would like to count the number of raster pixels/county (FIPS).
> Is this possible with GDAL/OGR?  If so can someone point me in the right
> direction?  If so, awesome as I plan to do some automation with python.

Is this of any use?
<http://sites.google.com/site/spatialpython/zonal-statistics>

Uses python and it's GDAL bindings, but you get the idea.

J


More information about the gdal-dev mailing list