ConsistentAreaTester.h
/**********************************************************************
*
* GEOS - Geometry Engine Open Source
* http://geos.osgeo.org
*
* Copyright (C) 2005-2006 Refractions Research Inc.
* Copyright (C) 2001-2002 Vivid Solutions Inc.
*
* This is free software; you can redistribute and/or modify it under
* the terms of the GNU Lesser General Public Licence as published
* by the Free Software Foundation.
* See the COPYING file for more information.
*
**********************************************************************
*
* Last port: operation/valid/ConsistentAreaTester.java rev. 1.14 (JTS-1.10)
*
**********************************************************************/
#pragma once
#include <geos/export.h>
#include <geos/geom/Coordinate.h> // for composition
#include <geos/algorithm/LineIntersector.h> // for composition
#include <geos/operation/relate/RelateNodeGraph.h> // for composition
// Forward declarations
namespace geos {
namespace algorithm {
class LineIntersector;
}
namespace geomgraph {
class GeometryGraph;
}
namespace operation {
namespace relate {
class RelateNodeGraph;
}
}
}
namespace geos {
namespace operation { // geos::operation
namespace valid { // geos::operation::valid
class GEOS_DLL ConsistentAreaTester {
private:
algorithm::LineIntersector li;
geomgraph::GeometryGraph* geomGraph;
relate::RelateNodeGraph nodeGraph;
geom::Coordinate invalidPoint;
bool isNodeEdgeAreaLabelsConsistent();
public:
ConsistentAreaTester(geomgraph::GeometryGraph* newGeomGraph);
~ConsistentAreaTester() = default;
geom::Coordinate& getInvalidPoint();
bool isNodeConsistentArea();
bool hasDuplicateRings();
};
} // namespace geos::operation::valid
} // namespace geos::operation
} // namespace geos
geos::algorithm::LineIntersector
A LineIntersector is an algorithm that can both test whether two line segments intersect and compute ...
Definition LineIntersector.h:53
geos::geom::Coordinate
Coordinate is the lightweight class used to store coordinates.
Definition Coordinate.h:217
geos::geomgraph::GeometryGraph
A GeometryGraph is a graph that models a given Geometry.
Definition GeometryGraph.h:71
geos::operation::relate::RelateNodeGraph
Implements the simple graph of Nodes and geomgraph::EdgeEnd which is all that is required to determin...
Definition RelateNodeGraph.h:67
geos::operation::valid::ConsistentAreaTester::hasDuplicateRings
bool hasDuplicateRings()
geos::operation::valid::ConsistentAreaTester::isNodeConsistentArea
bool isNodeConsistentArea()
Check all nodes to see if their labels are consistent with area topology.
geos::operation::valid::ConsistentAreaTester::getInvalidPoint
geom::Coordinate & getInvalidPoint()
geos::operation::valid::ConsistentAreaTester::ConsistentAreaTester
ConsistentAreaTester(geomgraph::GeometryGraph *newGeomGraph)
geos::algorithm
Contains classes and interfaces implementing fundamental computational geometry algorithms.
Definition Angle.h:32
geos::geomgraph
Contains classes that implement topology graphs.
Definition Depth.h:31
geos::operation::relate
Contains classes to implement the computation of the spatial relationships of Geometrys.
Definition namespaces.h:280
geos::operation::valid
Provides classes for testing the validity of geometries.
Definition namespaces.h:289
geos::operation
Provides classes for implementing operations on geometries.
Definition CleanCoverage.h:34
geos
Basic namespace for all GEOS functionalities.
Definition geos.h:38