GEOS: ConsistentAreaTester.h Source File

GEOS 3.5.0

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- File List

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
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
83 class GEOS_DLL ConsistentAreaTester {
84 private:
85
86 algorithm::LineIntersector li;
87
89 geomgraph::GeometryGraph *geomGraph;
90
91 relate::RelateNodeGraph nodeGraph;
92
94 geom::Coordinate invalidPoint;
95
100 bool isNodeEdgeAreaLabelsConsistent();
101
102 public:
103
110 ConsistentAreaTester(geomgraph::GeometryGraph *newGeomGraph);
111
112 ~ConsistentAreaTester();
113
118 geom::Coordinate& getInvalidPoint();
119
127 bool isNodeConsistentArea();
128
144 bool hasDuplicateRings();
145 };
146
147
148
149 } // namespace geos::operation::valid
150 } // namespace geos::operation
151 } // namespace geos
152
153 #endif // GEOS_OP_CONSISTENTAREATESTER_H
geos::geom::Coordinate
Coordinate is the lightweight class used to store coordinates.
Definition: Coordinate.h:60
geos::geomgraph::GeometryGraph
Definition: GeometryGraph.h:73
geos::algorithm::LineIntersector
A LineIntersector is an algorithm that can both test whether two line segments intersect and compute ...
Definition: LineIntersector.h:49
geos
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:25
geos::operation::relate::RelateNodeGraph
Implements the simple graph of Nodes and geomgraph::EdgeEnd which is all that is required to determin...
Definition: RelateNodeGraph.h:68
geos::operation::valid::ConsistentAreaTester
Checks that a geomgraph::GeometryGraph representing an area (a Polygon or MultiPolygon ) is consisten...
Definition: ConsistentAreaTester.h:83