Modifier and Type | Method and Description |
---|---|
static Coordinate |
findPtNotNode(Coordinate[] testCoords,
LinearRing searchRing,
GeometryGraph graph)
Find a point from the list of testCoords
that is NOT a node in the edge for the list of searchCoords
|
TopologyValidationError |
getValidationError()
Computes the validity of the geometry,
and if not valid returns the validation error for the geometry,
or null if the geometry is valid.
|
boolean |
isValid()
Computes the validity of the geometry,
and returns true if it is valid.
|
static boolean |
isValid(Coordinate coord)
Checks whether a coordinate is valid for processing.
|
static boolean |
isValid(Geometry geom)
Tests whether a
Geometry is valid. |
void |
setSelfTouchingRingFormingHoleValid(boolean isValid)
Sets whether polygons using Self-Touching Rings to form
holes are reported as valid.
|
public IsValidOp(Geometry parentGeometry)
public static boolean isValid(Geometry geom)
Geometry
is valid.geom
- the Geometry to testpublic static boolean isValid(Coordinate coord)
coord
- the coordinate to validatetrue
if the coordinate is validpublic static Coordinate findPtNotNode(Coordinate[] testCoords, LinearRing searchRing, GeometryGraph graph)
null
if none foundpublic void setSelfTouchingRingFormingHoleValid(boolean isValid)
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 validpublic boolean isValid()
public TopologyValidationError getValidationError()
Copyright © 2020. All rights reserved.