Class GeometryCollectionIterator
java.lang.Object
org.locationtech.jts.geom.GeometryCollectionIterator
- All Implemented Interfaces:
Iterator
Iterates over all
Geometrys in a Geometry,
(which may be either a collection or an atomic geometry).
The iteration sequence follows a pre-order, depth-first traversal of the
structure of the GeometryCollection
(which may be nested). The original Geometry object is
returned as well (as the first object), as are all sub-collections and atomic elements.
It is simple to ignore the intermediate GeometryCollection objects if they are not
needed.- Version:
- 1.7
-
Constructor Summary
ConstructorsConstructorDescriptionGeometryCollectionIterator(Geometry parent) Constructs an iterator over the givenGeometry. -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterator
forEachRemaining
-
Constructor Details
-
GeometryCollectionIterator
Constructs an iterator over the givenGeometry.- Parameters:
parent- the geometry over which to iterate; also, the first element returned by the iterator.
-
-
Method Details
-
hasNext
-
next
-
remove
public void remove()Removal is not supported.- Specified by:
removein interfaceIterator- Throws:
UnsupportedOperationException- This method is not implemented.
-