GEOS  3.9.1dev
ConsistentAreaTester.h
Go to the documentation of this file.
1 /**********************************************************************
2  *
3  * GEOS - Geometry Engine Open Source
4  * http://geos.osgeo.org
5  *
6  * Copyright (C) 2005-2006 Refractions Research Inc.
7  * Copyright (C) 2001-2002 Vivid Solutions Inc.
8  *
9  * This is free software; you can redistribute and/or modify it under
10  * the terms of the GNU Lesser General Public Licence as published
11  * by the Free Software Foundation.
12  * See the COPYING file for more information.
13  *
14  **********************************************************************
15  *
16  * Last port: operation/valid/ConsistentAreaTester.java rev. 1.14 (JTS-1.10)
17  *
18  **********************************************************************/
19 
20 #ifndef GEOS_OP_CONSISTENTAREATESTER_H
21 #define GEOS_OP_CONSISTENTAREATESTER_H
22 
23 #include <geos/export.h>
24 
25 #include <geos/geom/Coordinate.h> // for composition
26 #include <geos/algorithm/LineIntersector.h> // for composition
27 #include <geos/operation/relate/RelateNodeGraph.h> // for composition
28 
29 // Forward declarations
30 namespace geos {
31 namespace algorithm {
32 class LineIntersector;
33 }
34 namespace geomgraph {
35 class GeometryGraph;
36 }
37 namespace operation {
38 namespace relate {
39 class RelateNodeGraph;
40 }
41 }
42 }
43 
44 namespace geos {
45 namespace operation { // geos::operation
46 namespace valid { // geos::operation::valid
47 
70 private:
71 
73 
76 
78 
81 
86  bool isNodeEdgeAreaLabelsConsistent();
87 
88 public:
89 
97 
98  ~ConsistentAreaTester() = default;
99 
104  geom::Coordinate& getInvalidPoint();
105 
113  bool isNodeConsistentArea();
114 
130  bool hasDuplicateRings();
131 };
132 
133 
134 
135 } // namespace geos::operation::valid
136 } // namespace geos::operation
137 } // namespace geos
138 
139 #endif // GEOS_OP_CONSISTENTAREATESTER_H
geom::Coordinate invalidPoint
the intersection point found (if any)
#define GEOS_DLL
Definition: export.h:28
Coordinate is the lightweight class used to store coordinates.
Definition: Coordinate.h:60
A GeometryGraph is a graph that models a given Geometry.
Definition: GeometryGraph.h:74
geomgraph::GeometryGraph * geomGraph
Not owned.
A LineIntersector is an algorithm that can both test whether two line segments intersect and compute ...
Basic namespace for all GEOS functionalities.
Implements the simple graph of Nodes and geomgraph::EdgeEnd which is all that is required to determin...
Checks that a geomgraph::GeometryGraph representing an area (a geom::Polygon or geom::MultiPolygon) h...