py-gdalogr-cookbook
py-gdalogr-cookbook copied to clipboard
Calculate zonal statistics example problem!
The Calculate zonal statistics exemple in the page have a little problem. The variable "feat" of the funtion "zonal_stats" is being overwritten by the line feat = lyr.GetNextFeature(). Please, correct this removing this line of the code!
https://pcjericks.github.io/py-gdalogr-cookbook/raster_layers.html#calculate-zonal-statistics
Thanks @vieiramesquita for finding this. Do you wanna send a small PR to fix this?
Fixed in https://github.com/pcjericks/py-gdalogr-cookbook/pull/170