A SpatialIndex base class.
| Type | Name and description |
|---|---|
com.vividsolutions.jts.index.SpatialIndex |
indexThe wrapped JTS SpatialIndex |
| Constructor and description |
|---|
SpatialIndex
(com.vividsolutions.jts.index.SpatialIndex index)Create a new SpatialIndex with a JTS SpatialIndex |
| Type Params | Return Type | Name and description |
|---|---|---|
|
static SpatialIndex |
createQuadtree()Create a Quad Tree SpatialIndex |
|
static SpatialIndex |
createSTRtree()Create a STR Tree SpatialIndex |
|
int |
getSize()Get the number of items indexed |
|
void |
insert(Bounds bounds, java.lang.Object item)Insert a Bounds and Item |
|
java.util.List |
query(Bounds bounds)Query the index by the Bounds |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Create a new SpatialIndex with a JTS SpatialIndex
the - JTS SpatialIndexCreate a Quad Tree SpatialIndex
Create a STR Tree SpatialIndex
Get the number of items indexed
Insert a Bounds and Item
bounds - The Boundsitem - The valueQuery the index by the Bounds
bounds - The BoundsGroovy Documentation