- class geoscript.layer.cursor.Cursor(fcol, layer)¶
A cursor or iterator over Feature objects.
- next()¶
Returns the next feature. Raises StopIteration if no more features are available.
- read(n)¶
Reads n features into a list. If less than n features are available the resulting list will have a size less than n.
n is the number of features to read.
- close()¶
Closes the cursor. This function should always be called by client code after the cursor is no longer needed or has been exhausted.