com.vividsolutions.jts.operation
Class IsSimpleOp
java.lang.Object
com.vividsolutions.jts.operation.IsSimpleOp
public class IsSimpleOp
extends java.lang.Object
Tests whether a
Geometry
is simple.
In general, the SFS specification of simplicity
follows the rule:
- A Geometry is simple iff the only self-intersections are at
boundary points.
Simplicity is defined for each
Geometry
subclass as follows:
- Valid polygonal geometries are simple by definition, so
isSimple
trivially returns true.
- Linear geometries are simple iff they do not self-intersect at points
other than boundary points.
- Zero-dimensional geometries (points) are simple iff they have no
repeated points.
- Empty
Geometry
s are always simple
IsSimpleOp
public IsSimpleOp()
isSimple
public boolean isSimple(MultiPoint mp)
A MultiPoint is simple iff it has no repeated points