|
JTS Topology Suite - v 1.12 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.vividsolutions.jts.operation.valid.ConsistentAreaTester
public class ConsistentAreaTester
Checks that a GeometryGraph
representing an area
(a Polygon
or MultiPolygon
)
has consistent semantics for area geometries.
This check is required for any reasonable polygonal model
(including the OGC-SFS model, as well as models which allow ring self-intersection at single points)
Checks include:
Constructor Summary | |
---|---|
ConsistentAreaTester(GeometryGraph geomGraph)
Creates a new tester for consistent areas. |
Method Summary | |
---|---|
Coordinate |
getInvalidPoint()
|
boolean |
hasDuplicateRings()
Checks for two duplicate rings in an area. |
boolean |
isNodeConsistentArea()
Check all nodes to see if their labels are consistent with area topology. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConsistentAreaTester(GeometryGraph geomGraph)
geomGraph
- the topology graph of the area geometryMethod Detail |
---|
public Coordinate getInvalidPoint()
null
if none was foundpublic boolean isNodeConsistentArea()
true
if this area has a consistent node labellingpublic boolean hasDuplicateRings()
isNodeConsistentArea
,
duplicate rings can be found by checking for EdgeBundles which contain
more than one EdgeEnd.
(This is because topologically consistent areas cannot have two rings sharing
the same line segment, unless the rings are equal).
The start point of one of the equal rings will be placed in
invalidPoint.
|
JTS Topology Suite - v 1.12 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |