Create a SpatialIndex using the Quad Tree spatial index.
def index = new Quadtree() index.insert(new Bounds(0,0,10,10), new Point(5,5)) index.insert(new Bounds(2,2,6,6), new Point(4,4)) def results = index.query(new Bounds(4,4,7,7))
Type Params | Return Type | Name and description |
---|---|---|
|
List |
queryAll() Get a List of all entries in the spatial index
|
|
boolean |
remove(Bounds bounds, java.lang.Object item) Remove an item from the index
|
Methods inherited from class | Name |
---|---|
class SpatialIndex |
createQuadtree, createSTRtree, getSize, insert, query |