Class PathIteratorAdapter.GeomIterator
java.lang.Object
org.apache.sis.internal.feature.jts.PathIteratorAdapter.GeomIterator
- All Implemented Interfaces:
Iterator<org.locationtech.jts.geom.CoordinateSequence>
- Enclosing class:
PathIteratorAdapter
private static final class PathIteratorAdapter.GeomIterator
extends Object
implements Iterator<org.locationtech.jts.geom.CoordinateSequence>
An iterator over the coordinate sequences of a geometry collection.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.locationtech.jts.geom.GeometryCollection
The collection for which to return geometries.private Iterator
<org.locationtech.jts.geom.CoordinateSequence> Coordinate sequences of the current geometry.private int
Index of current geometry. -
Constructor Summary
ConstructorsConstructorDescriptionGeomIterator
(org.locationtech.jts.geom.GeometryCollection collection) Created a new iterator for the given collection. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Field Details
-
collection
private final org.locationtech.jts.geom.GeometryCollection collectionThe collection for which to return geometries. -
index
private int indexIndex of current geometry. -
current
Coordinate sequences of the current geometry.
-
-
Constructor Details
-
GeomIterator
GeomIterator(org.locationtech.jts.geom.GeometryCollection collection) Created a new iterator for the given collection.
-
-
Method Details
-
hasNext
public boolean hasNext()Returnstrue
if there is more sequences to return. -
next
public org.locationtech.jts.geom.CoordinateSequence next()Returns the coordinate sequence of the next geometry.
-