class PreparedGeometryIndex
extends java.lang.Object
PreparedGeometry
s
created from a set of Geometry
s.
This can be used for efficient testing
for intersection with a series of target geomtries.Modifier and Type | Field and Description |
---|---|
private SpatialIndex |
index |
Constructor and Description |
---|
PreparedGeometryIndex()
Creates a new index
|
Modifier and Type | Method and Description |
---|---|
void |
insert(java.util.Collection geoms)
Inserts a collection of Geometrys into the index.
|
java.util.List |
intersects(Geometry g)
Finds all
PreparedGeometry s which intersect a given Geometry |
java.util.List |
query(Geometry g)
Finds all
PreparedGeometry s which might
interact with a query Geometry . |
private SpatialIndex index
public void insert(java.util.Collection geoms)
geoms
- a collection of Geometrys to insertpublic java.util.List query(Geometry g)
PreparedGeometry
s which might
interact with a query Geometry
.g
- the geometry to query bypublic java.util.List intersects(Geometry g)
PreparedGeometry
s which intersect a given Geometry
g
- the geometry to query by