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))
Constructor and description |
---|
Quadtree
() Create a SpatialIndex using the Quad Tree spatial index. |
Methods inherited from class | Name |
---|---|
class SpatialIndex |
createQuadtree, createSTRtree, getSize, insert, query |
Get a List of all entries in the spatial index
The
- List of resultsRemove an item from the index
bounds
- The Boundsitem
- The Object