19 #ifndef GEOS_OP_OVERLAY_OVERLAYOP_H 20 #define GEOS_OP_OVERLAY_OVERLAYOP_H 22 #include <geos/export.h> 24 #include <geos/algorithm/PointLocator.h> 25 #include <geos/geom/Dimension.h> 26 #include <geos/geom/Location.h> 27 #include <geos/geomgraph/EdgeList.h> 28 #include <geos/geomgraph/PlanarGraph.h> 29 #include <geos/operation/GeometryGraphOperation.h> 35 #pragma warning(disable: 4251) // warning C4251: needs to have dll-interface to be used by clients of class 44 class GeometryFactory;
56 class ElevationMatrix;
202 std::vector<geom::Polygon*>* resultPolyList;
204 std::vector<geom::LineString*>* resultLineList;
206 std::vector<geom::Point*>* resultPointList;
208 void computeOverlay(OpCode opCode);
210 void insertUniqueEdges(std::vector<geomgraph::Edge*>* edges,
const geom::Envelope* env =
nullptr);
232 void computeLabelsFromDepths();
238 void replaceCollapsedEdges();
250 void copyPoints(
int argIndex,
const geom::Envelope* env =
nullptr);
260 void computeLabelling();
269 void mergeSymLabels();
271 void updateNodeLabelling();
290 void labelIncompleteNodes();
308 void findResultAreaEdges(OpCode opCode);
314 void cancelDuplicateResultEdges();
321 std::vector<geom::Geometry*>* geomList);
328 std::vector<geom::Polygon*>* geomList);
335 std::vector<geom::LineString*>* geomList);
356 static std::unique_ptr<geom::Geometry> createEmptyResult(
365 std::vector<geom::Point*>* nResultPointList,
366 std::vector<geom::LineString*>* nResultLineList,
367 std::vector<geom::Polygon*>* nResultPolyList,
371 std::vector<geomgraph::Edge*>dupEdges;
390 bool avgzcomputed[2];
392 double getAverageZ(
int targetIndex);
395 ElevationMatrix* elevationMatrix;
399 void checkObviouslyWrongResult(OpCode opCode);
432 #endif // ndef GEOS_OP_OVERLAY_OVERLAYOP_H An Envelope defines a rectangulare region of the 2D coordinate plane.
Definition: Envelope.h:58
Coordinate is the lightweight class used to store coordinates.
Definition: Coordinate.h:60
geomgraph::PlanarGraph & getGraph()
Gets the graph constructed to compute the overlay.
Definition: OverlayOp.h:151
Represents a directed graph which is embeddable in a planar surface.
Definition: geomgraph/PlanarGraph.h:75
OpCode
The spatial functions supported by this class.
Definition: OverlayOp.h:79
Definition: EdgeList.h:58
Computes the geometric overlay of two Geometry.
Definition: OverlayOp.h:70
Computes the topological relationship (Location) of a single point to a Geometry.
Definition: PointLocator.h:57
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition: Geometry.h:188
static geom::Geometry * overlayOp(const geom::Geometry *geom0, const geom::Geometry *geom1, OpCode opCode)
Computes an overlay operation for the given geometry arguments.
Definition: LineString.h:68
The base class for operations that require GeometryGraph.
Definition: GeometryGraphOperation.h:52
Represents a linear polygon, which may include holes.
Definition: Polygon.h:64
Supplies a set of utility methods for building Geometry objects from CoordinateSequence or other Geom...
Definition: GeometryFactory.h:68
Location
Constants representing the location of a point relative to a geometry.
Definition: Location.h:34
OverlayOp::overlayOp Adapter for use with geom::BinaryOp.
Definition: OverlayOp.h:406
A Label indicates the topological relationship of a component of a topology graph to a given Geometry...
Definition: Label.h:58
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:25
Definition: geomgraph/Node.h:62
Definition: geomgraph/Edge.h:66
DimensionType
Definition: Dimension.h:31