A SpatialIndex base class.
| Type | Name and description | 
|---|---|
private SpatialIndex  | 
                            indexThe wrapped JTS SpatialIndex  | 
                        
| Constructor and description | 
|---|
                                SpatialIndex
                                (SpatialIndex index)Create a new SpatialIndex with a JTS SpatialIndex  | 
                        
                                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 
  | 
                        
 | 
                            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() | 
                        
The wrapped JTS SpatialIndex
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 valueGroovy Documentation