20 #ifndef GEOS_LINEARREF_LINEARITERATOR_H 21 #define GEOS_LINEARREF_LINEARITERATOR_H 158 #endif // GEOS_LINEARREF_LINEARITERATOR_H LinearIterator & operator=(const LinearIterator &rhs)=delete
static size_t segmentEndVertexIndex(const LinearLocation &loc)
Coordinate is the lightweight class used to store coordinates.
size_t getVertexIndex() const
The vertex index of the vertex the iterator is currently at.
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
void next()
Moves the iterator ahead to the next vertex and (possibly) linear component.
Represents a location along a LineString or MultiLineString.
bool hasNext() const
Tests whether there are any vertices left to iterator over.
Basic namespace for all GEOS functionalities.
bool isEndOfLine() const
Checks whether the iterator cursor is pointing to the endpoint of a component geom::LineString.
const geom::LineString * getLine() const
Gets the geom::LineString component the iterator is current at.
size_t getComponentIndex() const
The component index of the vertex the iterator is currently at.
geom::Coordinate getSegmentEnd() const
Gets the second geom::Coordinate of the current segment. (the coordinate of the next vertex)...
geom::Coordinate getSegmentStart() const
Gets the first geom::Coordinate of the current segment. (the coordinate of the current vertex)...
LinearIterator(const geom::Geometry *linear)
Creates an iterator initialized to the start of a linear Geometry.
const geom::LineString * currentLine
const geom::Geometry * linear
An iterator over the components and coordinates of a linear geometry (LineString or MultiLineString)...