GeometryCollectionIterator class
Iterates over all {@link Geometry}s in a {@link 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
- Implemented types
Constructors
- GeometryCollectionIterator(Geometry parent)
-
Constructs an iterator over the given
Geometry
.
Properties
- atStart ↔ bool
-
Indicates whether or not the first element
(the root
GeometryCollection
) has been returned.getter/setter pair - current → dynamic
-
The current element.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- index ↔ int
-
The index of the
Geometry
that will be returned whennext
is called.getter/setter pair - max ↔ int
-
The number of
Geometry
s in the theGeometryCollection
.getter/setter pair - parent ↔ Geometry
-
The
Geometry
being iterated over.getter/setter pair - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- subcollectionIterator ↔ GeometryCollectionIterator?
-
The iterator over a nested
Geometry
, ornull
if thisGeometryCollectionIterator
is not currently iterating over a nestedGeometryCollection
.getter/setter pair
Methods
-
hasNext(
) → bool - Tests whether any geometry elements remain to be returned.
-
moveNext(
) → bool -
Advances the iterator to the next element of the iteration.
override
-
next(
) → Object - Gets the next geometry in the iteration sequence.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
remove(
) → void - Removal is not supported.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited