20 #ifndef GEOS_LINEARREF_LINEARITERATOR_H
21 #define GEOS_LINEARREF_LINEARITERATOR_H
25 #include <geos/geom/Coordinate.h>
26 #include <geos/geom/Geometry.h>
27 #include <geos/geom/LineSegment.h>
28 #include <geos/linearref/LinearLocation.h>
138 size_t componentIndex;
140 const size_t numLines;
148 void loadCurrentLine();
Coordinate is the lightweight class used to store coordinates.
Definition: Coordinate.h:60
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition: Geometry.h:188
Definition: LineString.h:68
An iterator over the components and coordinates of a linear geometry (LineString or MultiLineString).
Definition: LinearIterator.h:50
bool hasNext() const
Tests whether there are any vertices left to iterator over.
geom::Coordinate getSegmentEnd() const
Gets the second geom::Coordinate of the current segment. (the coordinate of the next vertex)....
size_t getComponentIndex() const
The component index of the vertex the iterator is currently at.
LinearIterator(const geom::Geometry *linear)
Creates an iterator initialized to the start of a linear Geometry.
geom::Coordinate getSegmentStart() const
Gets the first geom::Coordinate of the current segment. (the coordinate of the current vertex).
LinearIterator(const geom::Geometry *linear, size_t componentIndex, size_t vertexIndex)
Creates an iterator starting at a component and vertex in a linear geom::Geometry.
const geom::LineString * getLine() const
Gets the geom::LineString component the iterator is current at.
bool isEndOfLine() const
Checks whether the iterator cursor is pointing to the endpoint of a component geom::LineString.
LinearIterator(const geom::Geometry *linear, const LinearLocation &start)
Creates an iterator starting at a LinearLocation on a linear geom::Geometry.
size_t getVertexIndex() const
The vertex index of the vertex the iterator is currently at.
void next()
Moves the iterator ahead to the next vertex and (possibly) linear component.
Represents a location along a LineString or MultiLineString.
Definition: LinearLocation.h:44
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:26