public class SelfIntersectionUtil extends Object
Constructor and Description |
---|
SelfIntersectionUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean |
hasSelfIntersections(LineString string)
Perform a test, whether the given string is sane.
|
static Set<LinearRing> |
repair(LinearRing input)
Given a LinearRing, possibly containing errors (self-intersections),
repair this ring by splitting it up into several rings.
|
public static boolean hasSelfIntersections(LineString string)
string
- the lineString to check.public static Set<LinearRing> repair(LinearRing input)
input
- the ring to repair.