isValid()
method for Geometrys.
More...
#include <IsValidOp.h>
Public Member Functions | |
IsValidOp (const geom::Geometry *geom) | |
virtual | ~IsValidOp () |
TODO: validErr can't be a pointer! | |
bool | isValid () |
TopologyValidationError * | getValidationError () |
void | setSelfTouchingRingFormingHoleValid (bool isValid) |
Sets whether polygons using Self-Touching Rings to form holes are reported as valid. | |
Static Public Member Functions | |
static const geom::Coordinate * | findPtNotNode (const geom::CoordinateSequence *testCoords, const geom::LinearRing *searchRing, geomgraph::GeometryGraph *graph) |
static bool | isValid (const geom::Coordinate &coord) |
Friends | |
class | Unload |
isValid()
method for Geometrys. static const geom::Coordinate* geos::operation::valid::IsValidOp::findPtNotNode | ( | const geom::CoordinateSequence * | testCoords, | |
const geom::LinearRing * | searchRing, | |||
geomgraph::GeometryGraph * | graph | |||
) | [static] |
Find a point from the list of testCoords that is NOT a node in the edge for the list of searchCoords
static bool geos::operation::valid::IsValidOp::isValid | ( | const geom::Coordinate & | coord | ) | [static] |
void geos::operation::valid::IsValidOp::setSelfTouchingRingFormingHoleValid | ( | bool | isValid | ) | [inline] |
Sets whether polygons using Self-Touching Rings to form holes are reported as valid.
If this flag is set, the following Self-Touching conditions are treated as being valid:
The default (following the OGC SFS standard) is that this condition is not valid (false
).
This does not affect whether Self-Touching Rings disconnecting the polygon interior are considered valid (these are considered to be invalid under the SFS, and many other spatial models as well). This includes "bow-tie" shells, which self-touch at a single point causing the interior to be disconnected, and "C-shaped" holes which self-touch at a single point causing an island to be formed.
isValid | states whether geometry with this condition is valid |