22#include <geos/export.h>
23#include <geos/geom/Location.h>
24#include <geos/operation/buffer/OffsetCurveBuilder.h>
30#pragma warning(disable: 4251)
37class CoordinateSequence;
39class GeometryCollection;
53class BufferParameters;
76 static constexpr int MAX_INVERTED_RING_SIZE = 9;
77 static constexpr int INVERTED_CURVE_VERTEX_FACTOR = 4;
78 static constexpr double NEARNESS_FACTOR = 0.99;
82 std::vector<geomgraph::Label*> newLabels;
90 std::vector<noding::SegmentString*> curveList;
91 bool isInvertOrientation =
false;
167 static bool isRingCurveInverted(
178 static double maxDistance(
191 double bufferDistance);
212 double bufferDistance);
241 : inputGeom(newInputGeom)
242 , distance(newDistance)
243 , curveBuilder(newPm, newBufParams)
245 , isInvertOrientation(false)
268 void addCurves(
const std::vector<geom::CoordinateSequence*>& lineList,
280 isInvertOrientation = p_isInvertOrientation;
The internal representation of a list of coordinates inside a Geometry.
Definition: CoordinateSequence.h:44
Represents a collection of heterogeneous Geometry objects.
Definition: GeometryCollection.h:52
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition: Geometry.h:186
Definition: LineString.h:66
Models an OGC SFS LinearRing. A LinearRing is a LineString which is both closed and simple.
Definition: LinearRing.h:55
Represents a linear polygon, which may include holes.
Definition: Polygon.h:61
Specifies the precision model of the Coordinate in a Geometry.
Definition: PrecisionModel.h:90
Creates all the raw offset curves for a buffer of a Geometry.
Definition: BufferCurveSetBuilder.h:72
BufferCurveSetBuilder(const geom::Geometry &newInputGeom, double newDistance, const geom::PrecisionModel *newPm, const BufferParameters &newBufParams)
Constructor.
Definition: BufferCurveSetBuilder.h:236
std::vector< noding::SegmentString * > & getCurves()
Computes the set of raw offset curves for the buffer.
~BufferCurveSetBuilder()
Destructor.
void addCurves(const std::vector< geom::CoordinateSequence * > &lineList, geom::Location leftLoc, geom::Location rightLoc)
Add raw curves for a set of CoordinateSequences.
void setInvertOrientation(bool p_isInvertOrientation)
Definition: BufferCurveSetBuilder.h:279
Contains the parameters which describe how a buffer should be constructed.
Definition: BufferParameters.h:56
Computes the raw offset curve for a single Geometry component (ring, line or point).
Definition: OffsetCurveBuilder.h:61
Location
Constants representing the location of a point relative to a geometry.
Definition: Location.h:32
Basic namespace for all GEOS functionalities.
Definition: geos.h:39