21#include <geos/export.h>
22#include <geos/noding/BasicSegmentString.h>
23#include <geos/noding/Octant.h>
24#include <geos/noding/SegmentString.h>
25#include <geos/geom/CoordinateSequence.h>
54 const void* newContext)
71 const geom::Coordinate& getCoordinate(std::size_t i)
const override
83 bool isClosed()
const override
85 return pts->
getAt(0) == pts->getAt(size() - 1);
89 std::ostream& print(std::ostream& os)
const override;
100 if(index >= size() - 1) {
103 return Octant::octant(getCoordinate(index), getCoordinate(index + 1));
The internal representation of a list of coordinates inside a Geometry.
Definition: CoordinateSequence.h:44
virtual const Coordinate & getAt(std::size_t i) const =0
Returns a read-only reference to Coordinate at position i.
Represents a list of contiguous line segments, and supports noding the segments.
Definition: BasicSegmentString.h:44
int getSegmentOctant(std::size_t index) const
Gets the octant of the segment starting at vertex index.
Definition: BasicSegmentString.h:98
BasicSegmentString(geom::CoordinateSequence *newPts, const void *newContext)
Construct a BasicSegmentString.
Definition: BasicSegmentString.h:53
geom::CoordinateSequence * getCoordinates() const override
Definition: BasicSegmentString.h:77
static int octant(double dx, double dy)
An interface for classes which represent a sequence of contiguous line segments.
Definition: SegmentString.h:45
Basic namespace for all GEOS functionalities.
Definition: geos.h:39