Skip to content

Conversation

@vieiramesquita
Copy link

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!

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!
@ustroetz
Copy link
Contributor

Awesome that you send right away a PR. I haven't worked on this project in a while.

But I think we have to change it in the raster_layers.rst file. It will then be converted to HTML automatically.

@pcjericks should be able to provide more insights.

https://github.com/pcjericks/py-gdalogr-cookbook/blob/master/raster_layers.rst#calculate-zonal-statistics

@pcjericks
Copy link
Owner

Yep, could you modify your pull request to update the raster_layers.rst? The gh-pages branch is all generated by running the make file.

@vieiramesquita
Copy link
Author

Thanks guys, i needed this tool to work with a heavy raster dataset and i've noted this little problem :D.

@kannes
Copy link

kannes commented Sep 23, 2019

#170 has the proper fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants