com.vividsolutions.jts.geom
Class GeometryCollectionIterator
java.lang.Object
com.vividsolutions.jts.geom.GeometryCollectionIterator
- Iterator
public class GeometryCollectionIterator
extends java.lang.Object
implements Iterator
Iterates over all
Geometry
s in a
GeometryCollection
.
. Implements a pre-order depth-first traversal of the
GeometryCollection
(which may be nested). The original
GeometryCollection
is
returned as well (as the first object), as are all sub-collections. It is
simple to ignore the
GeometryCollection
objects if they are not
needed.
GeometryCollectionIterator
public GeometryCollectionIterator(Geometry parent)
Constructs an iterator over the given GeometryCollection
.
parent
- the collection over which to iterate; also, the first
element returned by the iterator.
hasNext
public boolean hasNext()
remove
public void remove()
Not implemented.