24 #include <geos/geom/Coordinate.h> 25 #include <geos/geom/Geometry.h> 26 #include <geos/geom/LineSegment.h> 27 #include <geos/linearref/LinearLocation.h> 133 static std::size_t segmentEndVertexIndex(
const LinearLocation& loc);
136 std::size_t vertexIndex;
137 std::size_t componentIndex;
139 const std::size_t numLines;
147 void loadCurrentLine();
Coordinate is the lightweight class used to store coordinates.
Definition: Coordinate.h:58
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.
geom::Coordinate getSegmentEnd() const
Gets the second geom::Coordinate of the current segment. (the coordinate of the next vertex)...
std::size_t getVertexIndex() const
The vertex index of the vertex the iterator is currently at.
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition: Geometry.h:186
void next()
Moves the iterator ahead to the next vertex and (possibly) linear component.
Definition: LineString.h:66
Represents a location along a LineString or MultiLineString.
Definition: LinearLocation.h:43
geom::Coordinate getSegmentStart() const
Gets the first geom::Coordinate of the current segment. (the coordinate of the current vertex)...
Basic namespace for all GEOS functionalities.
Definition: Angle.h:25
bool hasNext() const
Tests whether there are any vertices left to iterator over.
LinearIterator(const geom::Geometry *linear)
Creates an iterator initialized to the start of a linear Geometry.
An iterator over the components and coordinates of a linear geometry (LineString or MultiLineString)...
Definition: LinearIterator.h:49
std::size_t getComponentIndex() const
The component index of the vertex the iterator is currently at.