Class IndexedNestedRingTester
- java.lang.Object
-
- org.locationtech.jts.operation.valid.IndexedNestedRingTester
-
public class IndexedNestedRingTester extends java.lang.Object
Tests whether any of a set ofLinearRing
s are nested inside another ring in the set, using a spatial index to speed up the comparisons.- Version:
- 1.7
-
-
Field Summary
Fields Modifier and Type Field Description private GeometryGraph
graph
private SpatialIndex
index
private Coordinate
nestedPt
private java.util.List
rings
private Envelope
totalEnv
-
Constructor Summary
Constructors Constructor Description IndexedNestedRingTester(GeometryGraph graph)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(LinearRing ring)
private void
buildIndex()
Coordinate
getNestedPoint()
boolean
isNonNested()
-
-
-
Field Detail
-
graph
private GeometryGraph graph
-
rings
private java.util.List rings
-
totalEnv
private Envelope totalEnv
-
index
private SpatialIndex index
-
nestedPt
private Coordinate nestedPt
-
-
Constructor Detail
-
IndexedNestedRingTester
public IndexedNestedRingTester(GeometryGraph graph)
-
-
Method Detail
-
getNestedPoint
public Coordinate getNestedPoint()
-
add
public void add(LinearRing ring)
-
isNonNested
public boolean isNonNested()
-
buildIndex
private void buildIndex()
-
-