py-gdalogr-cookbook
py-gdalogr-cookbook copied to clipboard
You can't iterate over a layer's features more than once without calling layer.ResetReading
I just found this out the hard way. Maybe this can be noted in the "Iterate over features" section? (Great guide by the way, it's really helpful for getting started.)
@33d, Thanks for the comment. Go ahead and put a note in the feature iteration section and put in a pull request.
You might want to also add it to this section since it's relevant: http://pcjericks.github.io/py-gdalogr-cookbook/gotchas.html