Class ValidationFunctions
- java.lang.Object
-
- org.locationtech.jtstest.function.ValidationFunctions
-
public class ValidationFunctions extends Object
-
-
Constructor Summary
Constructors Constructor Description ValidationFunctions()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Geometry
fixIfInvalid(Geometry geom)
static Geometry
fixInvalid(Geometry geom)
static Geometry
fixInvalidKeepCollapse(Geometry geom)
static Geometry
invalidGeoms(Geometry g)
static Geometry
invalidLocations(Geometry g)
Validates all geometries in a collection independently.static boolean
isSimple(Geometry geom)
static boolean
isValidAllowInvertedRing(Geometry g)
static Geometry
nonSimpleAllPoints(Geometry geom)
static Geometry
nonSimpleEndpoints(Geometry geom)
static Geometry
nonSimplePoint(Geometry geom)
-
-
-
Method Detail
-
invalidLocations
public static Geometry invalidLocations(Geometry g)
Validates all geometries in a collection independently. Errors are returned as points at the invalid location- Parameters:
g
-- Returns:
- the invalid locations, if any
-
isValidAllowInvertedRing
public static boolean isValidAllowInvertedRing(Geometry g)
-
isSimple
public static boolean isSimple(Geometry geom)
-
-