py-gdalogr-cookbook icon indicating copy to clipboard operation
py-gdalogr-cookbook copied to clipboard

You can't iterate over a layer's features more than once without calling layer.ResetReading

Open 33d opened this issue 9 years ago • 1 comments

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 avatar Oct 30 '15 06:10 33d

@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

ranchodeluxe avatar Oct 30 '15 07:10 ranchodeluxe