|
JTS Topology Suite version 1.12 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.vividsolutions.jts.operation.IsSimpleOp
public class IsSimpleOp
Tests whether a Geometry
is simple.
In general, the SFS specification of simplicity
follows the rule:
BoundaryNodeRule
s 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()
).
Geometry
s are always simple
BoundaryNodeRule
Constructor Summary | |
---|---|
IsSimpleOp()
Deprecated. use IsSimpleOp(Geometry) |
|
IsSimpleOp(Geometry geom)
Creates a simplicity checker using the default SFS Mod-2 Boundary Node Rule |
|
IsSimpleOp(Geometry geom,
BoundaryNodeRule boundaryNodeRule)
Creates a simplicity checker using a given BoundaryNodeRule |
Method Summary | |
---|---|
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 geom)
Deprecated. use isSimple() |
boolean |
isSimple(MultiLineString geom)
Deprecated. use isSimple() |
boolean |
isSimple(MultiPoint mp)
Deprecated. use isSimple() |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IsSimpleOp()
public IsSimpleOp(Geometry geom)
geom
- the geometry to testpublic IsSimpleOp(Geometry geom, BoundaryNodeRule boundaryNodeRule)
BoundaryNodeRule
geom
- the geometry to testboundaryNodeRule
- the rule to use.Method Detail |
---|
public boolean isSimple()
public Coordinate getNonSimpleLocation()
isSimple()
must be called before this method is called.
public boolean isSimple(LineString geom)
LineString
is simple.
geom
- the lineal geometry to test
public boolean isSimple(MultiLineString geom)
MultiLineString
geometry is simple.
geom
- the lineal geometry to test
public boolean isSimple(MultiPoint mp)
|
JTS Topology Suite version 1.12 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |