22#include <geos/geom/Coordinate.h>
23#include <geos/geom/CoordinateSequence.h>
24#include <geos/geom/CoordinateArraySequence.h>
25#include <geos/geom/PrecisionModel.h>
56 double minimumVertexDistance;
68 if(ptList->size() < 1) {
73 if(ptDist < minimumVertexDistance) {
89 precisionModel(
nullptr),
90 minimumVertexDistance(0.0)
109 precisionModel =
nullptr;
110 minimumVertexDistance = 0.0;
116 precisionModel = nPrecisionModel;
120 setMinimumVertexDistance(
double nMinVertexDistance)
122 minimumVertexDistance = nMinVertexDistance;
128 assert(precisionModel);
133 if(isRedundant(bufPt)) {
139 ptList->
add(bufPt,
true);
146 for(std::size_t i = 0, n = pts.size(); i < n; ++i) {
151 for(std::size_t i = pts.size(); i > 0; --i) {
163 if(ptList->size() < 1) {
168 if(startPt.
equals(lastPt)) {
172 ptList->
add(startPt,
true);
195 return ptList ? ptList->size() : 0 ;
201operator<< (std::ostream& os,
202 const OffsetSegmentString& lst)
208 os <<
"empty (consumed?)";
The default implementation of CoordinateSequence.
Definition: CoordinateArraySequence.h:35
void clear()
Reset this CoordinateArraySequence to the empty state.
Definition: CoordinateArraySequence.h:84
void add(const Coordinate &c)
Add a Coordinate to the list.
The internal representation of a list of coordinates inside a Geometry.
Definition: CoordinateSequence.h:44
const Coordinate & front() const
Return first Coordinate in the sequence.
Definition: CoordinateSequence.h:81
const Coordinate & back() const
Return last Coordinate in the sequence.
Definition: CoordinateSequence.h:74
Coordinate is the lightweight class used to store coordinates.
Definition: Coordinate.h:58
bool equals(const Coordinate &other) const
2D only
Definition: Coordinate.h:155
double distance(const Coordinate &p) const
Definition: Coordinate.h:191
Specifies the precision model of the Coordinate in a Geometry.
Definition: PrecisionModel.h:90
double makePrecise(double val) const
Rounds a numeric value to the PrecisionModel grid.
Definition: OffsetSegmentString.h:42
void closeRing()
Definition: OffsetSegmentString.h:161
geom::CoordinateSequence * getCoordinates()
Definition: OffsetSegmentString.h:184
Basic namespace for all GEOS functionalities.
Definition: geos.h:39