class PreparedGeometryIndex
extends java.lang.Object
PreparedGeometrys
created from a set of Geometrys.
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
PreparedGeometrys which intersect a given Geometry |
java.util.List |
query(Geometry g)
Finds all
PreparedGeometrys 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)
PreparedGeometrys which might
interact with a query Geometry.g - the geometry to query bypublic java.util.List intersects(Geometry g)
PreparedGeometrys which intersect a given Geometryg - the geometry to query by