22#include <geos/geom/Geometry.h>
23#include <geos/geom/GeometryFactory.h>
24#include <geos/operation/overlay/OverlayOp.h>
25#include <geos/operation/overlayng/OverlayGraph.h>
26#include <geos/operation/overlayng/OverlayEdgeRing.h>
27#include <geos/operation/overlayng/InputGeometry.h>
28#include <geos/export.h>
127 InputGeometry inputGeom;
133 bool isAreaResultOnly;
135 bool isOutputResultEdges;
136 bool isOutputNodedEdges;
139 std::unique_ptr<geom::Geometry> computeEdgeOverlay();
156 std::unique_ptr<geom::Geometry> extractResult(
int opCode,
OverlayGraph* graph);
157 std::unique_ptr<geom::Geometry> createEmptyResult();
171 static constexpr bool STRICT_MODE_DEFAULT =
false;
184 : pm(p_geomFact->getPrecisionModel())
185 , inputGeom(geom0, geom1)
186 , geomFact(p_geomFact)
189 , isStrictMode(STRICT_MODE_DEFAULT)
191 , isAreaResultOnly(false)
192 , isOutputEdges(false)
193 , isOutputResultEdges(false)
194 , isOutputNodedEdges(false)
204 , inputGeom(geom0, geom1)
205 , geomFact(geom0->getFactory())
208 , isStrictMode(STRICT_MODE_DEFAULT)
210 , isAreaResultOnly(false)
211 , isOutputEdges(false)
212 , isOutputResultEdges(false)
213 , isOutputNodedEdges(false)
230 :
OverlayNG(geom0, geom1, geom0->getFactory()->getPrecisionModel(), p_opCode)
246 void setStrictMode(
bool p_isStrictMode) { isStrictMode = p_isStrictMode; }
247 void setAreaResultOnly(
bool p_areaResultOnly) { isAreaResultOnly = p_areaResultOnly; }
248 void setOutputEdges(
bool p_isOutputEdges) { isOutputEdges = p_isOutputEdges; }
249 void setOutputResultEdges(
bool p_isOutputResultEdges) { isOutputResultEdges = p_isOutputResultEdges; }
250 void setNoder(noding::Noder* p_noder) { noder = p_noder; }
252 void setOutputNodedEdges(
bool p_isOutputNodedEdges)
254 isOutputEdges =
true;
255 isOutputNodedEdges = p_isOutputNodedEdges;
302 static std::unique_ptr<Geometry>
318 static std::unique_ptr<Geometry>
333 static std::unique_ptr<Geometry>
357 static std::unique_ptr<Geometry>
380 static std::unique_ptr<Geometry>
400 static std::unique_ptr<Geometry>
Supplies a set of utility methods for building Geometry objects from CoordinateSequence or other Geom...
Definition: GeometryFactory.h:66
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition: Geometry.h:186
Specifies the precision model of the Coordinate in a Geometry.
Definition: PrecisionModel.h:90
Computes all intersections between segments in a set of SegmentString.
Definition: Noder.h:46
@ opSYMDIFFERENCE
The code for the Symmetric Difference overlay operation.
Definition: OverlayOp.h:86
@ opUNION
The code for the Union overlay operation.
Definition: OverlayOp.h:82
@ opINTERSECTION
The code for the Intersection overlay operation.
Definition: OverlayOp.h:80
@ opDIFFERENCE
The code for the Difference overlay operation.
Definition: OverlayOp.h:84
Definition: OverlayGraph.h:54
Definition: OverlayLabel.h:87
Definition: OverlayNG.h:121
void setOptimized(bool p_isOptimized)
Definition: OverlayNG.h:245
OverlayNG(const geom::Geometry *geom0, const geom::Geometry *geom1, const geom::GeometryFactory *p_geomFact, int p_opCode)
Definition: OverlayNG.h:183
std::unique_ptr< Geometry > getResult()
static std::unique_ptr< Geometry > overlay(const Geometry *geom0, const Geometry *geom1, int opCode, const PrecisionModel *pm, noding::Noder *noder)
static std::unique_ptr< Geometry > overlay(const Geometry *geom0, const Geometry *geom1, int opCode)
static std::unique_ptr< Geometry > geomunion(const Geometry *geom, const PrecisionModel *pm, noding::Noder *noder)
OverlayNG(const geom::Geometry *geom0, const geom::Geometry *geom1, const geom::PrecisionModel *p_pm, int p_opCode)
Definition: OverlayNG.h:202
static std::unique_ptr< Geometry > overlay(const Geometry *geom0, const Geometry *geom1, int opCode, noding::Noder *noder)
static bool isResultOfOpPoint(const OverlayLabel *label, int opCode)
OverlayNG(const geom::Geometry *geom0, const geom::Geometry *geom1, int p_opCode)
Definition: OverlayNG.h:229
static std::unique_ptr< Geometry > geomunion(const Geometry *geom, const PrecisionModel *pm)
static std::unique_ptr< Geometry > overlay(const Geometry *geom0, const Geometry *geom1, int opCode, const PrecisionModel *pm)
static bool isResultOfOp(int overlayOpCode, Location loc0, Location loc1)
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