22 #include <geos/export.h>
23 #include <geos/geom/Location.h>
24 #include <geos/operation/buffer/OffsetCurveBuilder.h>
30 #pragma warning(disable: 4251)
37 class CoordinateSequence;
39 class GeometryCollection;
53 class BufferParameters;
77 static constexpr
int MAX_INVERTED_RING_SIZE = 9;
78 static constexpr
int INVERTED_CURVE_VERTEX_FACTOR = 4;
79 static constexpr
double NEARNESS_FACTOR = 0.99;
83 std::vector<geomgraph::Label*> newLabels;
91 std::vector<noding::SegmentString*> curveList;
92 bool isInvertOrientation =
false;
168 static bool isRingCurveInverted(
183 static bool hasPointOnBuffer(
197 double bufferDistance);
218 double bufferDistance);
247 : inputGeom(newInputGeom)
248 , distance(newDistance)
249 , curveBuilder(newPm, newBufParams)
251 , isInvertOrientation(false)
274 void addCurves(
const std::vector<geom::CoordinateSequence*>& lineList,
286 isInvertOrientation = p_isInvertOrientation;
The internal representation of a list of coordinates inside a Geometry.
Definition: CoordinateSequence.h:56
Represents a collection of heterogeneous Geometry objects.
Definition: GeometryCollection.h:51
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition: Geometry.h:197
Definition: LineString.h:66
Models an OGC SFS LinearRing. A LinearRing is a LineString which is both closed and simple.
Definition: LinearRing.h:54
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:88
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:242
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:285
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:65
Location
Constants representing the location of a point relative to a geometry.
Definition: Location.h:32
Basic namespace for all GEOS functionalities.
Definition: Angle.h:25