com.vividsolutions.jts.geom

Class GeometryCollectionIterator

Implemented Interfaces:
Iterator

public class GeometryCollectionIterator
extends java.lang.Object
implements Iterator

Iterates over all Geometrys 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.
Version:
1.7

Constructor Summary

GeometryCollectionIterator(Geometry parent)
Constructs an iterator over the given GeometryCollection.

Method Summary

boolean
hasNext()
Object
next()
void
remove()
Not implemented.

Constructor Details

GeometryCollectionIterator

public GeometryCollectionIterator(Geometry parent)
Constructs an iterator over the given GeometryCollection.
Parameters:
parent - the collection over which to iterate; also, the first element returned by the iterator.

Method Details

hasNext

public boolean hasNext()

next

public Object next()

remove

public void remove()
Not implemented.