GEOS 3.9.1
ConsistentAreaTester.h
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
30namespace geos {
31namespace algorithm {
32class LineIntersector;
33}
34namespace geomgraph {
35class GeometryGraph;
36}
37namespace operation {
38namespace relate {
39class RelateNodeGraph;
40}
41}
42}
43
44namespace geos {
45namespace operation { // geos::operation
46namespace valid { // geos::operation::valid
47
69class GEOS_DLL ConsistentAreaTester {
70private:
71
73
75 geomgraph::GeometryGraph* geomGraph;
76
78
80 geom::Coordinate invalidPoint;
81
86 bool isNodeEdgeAreaLabelsConsistent();
87
88public:
89
97
98 ~ConsistentAreaTester() = default;
99
105
114
131};
132
133
134
135} // namespace geos::operation::valid
136} // namespace geos::operation
137} // namespace geos
138
139#endif // GEOS_OP_CONSISTENTAREATESTER_H
A LineIntersector is an algorithm that can both test whether two line segments intersect and compute ...
Definition LineIntersector.h:49
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
Implements the simple graph of Nodes and geomgraph::EdgeEnd which is all that is required to determin...
Definition RelateNodeGraph.h:68
Checks that a geomgraph::GeometryGraph representing an area (a geom::Polygon or geom::MultiPolygon) h...
Definition ConsistentAreaTester.h:69
bool isNodeConsistentArea()
Check all nodes to see if their labels are consistent with area topology.
ConsistentAreaTester(geomgraph::GeometryGraph *newGeomGraph)
Basic namespace for all GEOS functionalities.
Definition IndexedNestedRingTester.h:26