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 GeometryfixIfInvalid(Geometry geom)static GeometryfixInvalid(Geometry geom)static GeometryfixInvalidKeepCollapse(Geometry geom)static GeometryinvalidGeoms(Geometry g)static GeometryinvalidLocations(Geometry g)Validates all geometries in a collection independently.static booleanisSimple(Geometry geom)static booleanisValidAllowInvertedRing(Geometry g)static GeometrynonSimpleAllPoints(Geometry geom)static GeometrynonSimpleEndpoints(Geometry geom)static GeometrynonSimplePoint(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)
-
-