Toblerity/Fiona — pull request #128 by rbuffat (2014-08-17 11:06:55+00:00)
Title: add support for slice

Iterator was extended with support for the python slice (getitem) syntax

The ogr documentation states for the functions:
OGR_L_GetExtent
OGR_L_GetExtentEx
OGR_L_GetFeatureCount
OGR_L_GetFeature
that they can modify the read cursor. A check for situations was added, and in case a function call to one of this methods after a sequential read has started is detected, a runtime warning is given.

Not so nice is, that getitem is implemented on iterator and not collection. However, this allows to reuse it for filter with a boundingbox.