Class IndexedNestedRingTester
- java.lang.Object
-
- org.locationtech.jts.operation.valid.IndexedNestedRingTester
-
public class IndexedNestedRingTester extends java.lang.ObjectTests whether any of a set ofLinearRings 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 GeometryGraphgraphprivate SpatialIndexindexprivate CoordinatenestedPtprivate java.util.Listringsprivate EnvelopetotalEnv
-
Constructor Summary
Constructors Constructor Description IndexedNestedRingTester(GeometryGraph graph)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(LinearRing ring)private voidbuildIndex()CoordinategetNestedPoint()booleanisNonNested()
-
-
-
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()
-
-