public class IsSimpleOp extends Object
Geometry is simple. In general, the SFS specification of simplicity follows the rule:
BoundaryNodeRules as well.
Simplicity is defined for each Geometry subclass as follows:
isSimple trivially returns true. (Hint: in order to check if a polygonal geometry has self-intersections, use Geometry.isValid() ). Geometrys are always simple BoundaryNodeRule
| Constructor and Description |
|---|
IsSimpleOp()
Deprecated.
use IsSimpleOp(Geometry)
|
IsSimpleOp(Geometry
Creates a simplicity checker using the default SFS Mod-2 Boundary Node Rule
|
IsSimpleOp(Geometry
Creates a simplicity checker using a given
BoundaryNodeRule
|
| Modifier and Type | Method and Description |
|---|---|
Coordinate |
getNonSimpleLocation()
Gets a coordinate for the location where the geometry fails to be simple.
|
boolean |
isSimple()
Tests whether the geometry is simple.
|
boolean |
isSimple(LineString
Deprecated.
use isSimple()
|
boolean |
isSimple(MultiLineString
Deprecated.
use isSimple()
|
boolean |
isSimple(MultiPoint
Deprecated.
use isSimple()
|
public IsSimpleOp()
public IsSimpleOp(Geometrygeom)
geom - the geometry to test
public IsSimpleOp(Geometrygeom, BoundaryNodeRule boundaryNodeRule)
BoundaryNodeRule
geom - the geometry to test
boundaryNodeRule - the rule to use.
public boolean isSimple()
public CoordinategetNonSimpleLocation()
isSimple() must be called before this method is called.
public boolean isSimple(LineStringgeom)
LineString is simple.
geom - the lineal geometry to test
public boolean isSimple(MultiLineStringgeom)
MultiLineString geometry is simple.
geom - the lineal geometry to test
public boolean isSimple(MultiPointmp)