Constructor and Description |
---|
IsValidOp(Geometry inputGeometry)
Creates a new validator for a geometry.
|
Modifier and Type | Method and Description |
---|---|
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()
Tests the validity of the input geometry.
|
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 inputGeometry)
inputGeometry
- the geometry to validatepublic 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 void setSelfTouchingRingFormingHoleValid(boolean isValid)
The default (following the OGC SFS standard)
is that this condition is not valid (false
).
Self-Touching Rings which disconnect the the polygon interior are still considered to be invalid (these are invalid under the SFS, and many other spatial models as well). This includes:
isValid
- states whether geometry with this condition is validpublic boolean isValid()
public TopologyValidationError getValidationError()
Copyright © 2024. All rights reserved.