GeoScript

Previous topic

Layer

Next topic

Shapefile

This Page

Cursor

class geoscript.layer.cursor.Cursor

A cursor or iterator over Feature objects.

close()

Closes the cursor. This function should always be called by client code after the cursor is no longer needed or has been exhausted.

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.