Class GeometryCollectionEnumerator
- Namespace
- NetTopologySuite.Geometries
- Assembly
- NetTopologySuite.dll
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.
public class GeometryCollectionEnumerator : IEnumerator<Geometry>, IEnumerator, IDisposable, IEnumerable<Geometry>, IEnumerable
- Inheritance
-
GeometryCollectionEnumerator
- Implements
- Inherited Members
Constructors
GeometryCollectionEnumerator(Geometry)
Constructs an iterator over the given GeometryCollection
.
public GeometryCollectionEnumerator(Geometry parent)
Parameters
parent
GeometryThe collection over which to iterate; also, the first element returned by the iterator.
Properties
Current
public Geometry Current { get; }
Property Value
Methods
Dispose()
public void Dispose()
GetEnumerator()
public IEnumerator<Geometry> GetEnumerator()
Returns
MoveNext()
public bool MoveNext()
Returns
Reset()
public void Reset()