21 #ifndef GEOS_OP_BUFFER_BUFFEROP_H 22 #define GEOS_OP_BUFFER_BUFFEROP_H 31 #pragma warning(disable: 4251) // warning C4251: needs to have dll-interface to be used by clients of class 89 static const int MAX_PRECISION_DIGITS = 12;
108 double distance,
int maxPrecisionDigits);
122 void computeGeometry();
124 void bufferOriginalPrecision();
126 void bufferReducedPrecision(
int precisionDigits);
128 void bufferReducedPrecision();
137 CAP_ROUND = BufferParameters::CAP_ROUND,
141 CAP_BUTT = BufferParameters::CAP_FLAT,
145 CAP_SQUARE = BufferParameters::CAP_SQUARE
162 int quadrantSegments =
163 BufferParameters::DEFAULT_QUADRANT_SEGMENTS,
164 int endCapStyle = BufferParameters::CAP_ROUND);
175 resultGeometry(nullptr)
191 resultGeometry(nullptr)
203 inline void setEndCapStyle(
int nEndCapStyle);
210 inline void setQuadrantSegments(
int nQuadrantSegments);
232 inline void setSingleSided(
bool isSingleSided);
247 BufferOp::setQuadrantSegments(
int q)
249 bufParams.setQuadrantSegments(q);
253 BufferOp::setEndCapStyle(
int s)
259 BufferOp::setSingleSided(
bool isSingleSided)
261 bufParams.setSingleSided(isSingleSided);
272 #endif // ndef GEOS_OP_BUFFER_BUFFEROP_H EndCapStyle
End cap styles.
BufferOp(const geom::Geometry *g)
Initializes a buffer computation for the given geometry.
Specifies the precision model of the Coordinate in a Geometry.
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
BufferOp(const geom::Geometry *g, const BufferParameters ¶ms)
Initializes a buffer computation for the given geometry with the given set of parameters.
BufferParameters bufParams
Computes the buffer of a geometry, for both positive and negative buffer distances.
const geom::Geometry * argGeom
Basic namespace for all GEOS functionalities.
Contains the parameters which describe how a buffer should be constructed.
geom::Geometry * resultGeometry
Indicates an invalid or inconsistent topological situation encountered during processing.
util::TopologyException saveException