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;
191 static std::unique_ptr<geom::Geometry> createEmptyResult(
219 std::vector<geom::Polygon*>* resultPolyList;
221 std::vector<geom::LineString*>* resultLineList;
223 std::vector<geom::Point*>* resultPointList;
225 void computeOverlay(
OpCode opCode);
227 void insertUniqueEdges(std::vector<geomgraph::Edge*>* edges,
const geom::Envelope* env =
nullptr);
249 void computeLabelsFromDepths();
255 void replaceCollapsedEdges();
267 void copyPoints(
int argIndex,
const geom::Envelope* env =
nullptr);
277 void computeLabelling();
286 void mergeSymLabels();
288 void updateNodeLabelling();
307 void labelIncompleteNodes();
325 void findResultAreaEdges(
OpCode opCode);
331 void cancelDuplicateResultEdges();
338 std::vector<geom::Geometry*>* geomList);
345 std::vector<geom::Polygon*>* geomList);
352 std::vector<geom::LineString*>* geomList);
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);
411 #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
A EdgeList is a list of Edges.
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
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
A Label indicates the topological relationship of a component of a topology graph to a given Geometry...
Definition: Label.h:59
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:26
The node component of a geometry graph.
Definition: geomgraph/Node.h:62
Definition: geomgraph/Edge.h:66
DimensionType
Definition: Dimension.h:31