T
- Type of objects to be spatial indexed.public class HashGridSpatialIndex<T> extends Object implements com.vividsolutions.jts.index.SpatialIndex, Serializable
Constructor and Description |
---|
HashGridSpatialIndex()
Create a HashGrid with the default grid dimensions.
|
HashGridSpatialIndex(double xBinSize,
double yBinSize) |
Modifier and Type | Method and Description |
---|---|
void |
insert(com.vividsolutions.jts.geom.Envelope envelope,
Object item) |
void |
insert(com.vividsolutions.jts.geom.LineString geom,
Object item) |
List<T> |
query(com.vividsolutions.jts.geom.Envelope envelope) |
void |
query(com.vividsolutions.jts.geom.Envelope envelope,
com.vividsolutions.jts.index.ItemVisitor visitor) |
boolean |
remove(com.vividsolutions.jts.geom.Envelope envelope,
Object item) |
String |
toString() |
public HashGridSpatialIndex(double xBinSize, double yBinSize)
public HashGridSpatialIndex()
public final void insert(com.vividsolutions.jts.geom.Envelope envelope, Object item)
insert
in interface com.vividsolutions.jts.index.SpatialIndex
public final void insert(com.vividsolutions.jts.geom.LineString geom, Object item)
public final List<T> query(com.vividsolutions.jts.geom.Envelope envelope)
query
in interface com.vividsolutions.jts.index.SpatialIndex
public final void query(com.vividsolutions.jts.geom.Envelope envelope, com.vividsolutions.jts.index.ItemVisitor visitor)
query
in interface com.vividsolutions.jts.index.SpatialIndex
public final boolean remove(com.vividsolutions.jts.geom.Envelope envelope, Object item)
remove
in interface com.vividsolutions.jts.index.SpatialIndex
Copyright © 2018. All rights reserved.