T
- Type of objects to be spatial indexed.public class HashGridSpatialIndex<T> extends Object implements org.locationtech.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(org.locationtech.jts.geom.Envelope envelope,
Object item) |
void |
insert(org.locationtech.jts.geom.LineString geom,
Object item) |
List<T> |
query(org.locationtech.jts.geom.Envelope envelope) |
void |
query(org.locationtech.jts.geom.Envelope envelope,
org.locationtech.jts.index.ItemVisitor visitor) |
boolean |
remove(org.locationtech.jts.geom.Envelope envelope,
Object item) |
String |
toString() |
public HashGridSpatialIndex(double xBinSize, double yBinSize)
public HashGridSpatialIndex()
public final void insert(org.locationtech.jts.geom.Envelope envelope, Object item)
insert
in interface org.locationtech.jts.index.SpatialIndex
public final void insert(org.locationtech.jts.geom.LineString geom, Object item)
public final List<T> query(org.locationtech.jts.geom.Envelope envelope)
query
in interface org.locationtech.jts.index.SpatialIndex
public final void query(org.locationtech.jts.geom.Envelope envelope, org.locationtech.jts.index.ItemVisitor visitor)
query
in interface org.locationtech.jts.index.SpatialIndex
public final boolean remove(org.locationtech.jts.geom.Envelope envelope, Object item)
remove
in interface org.locationtech.jts.index.SpatialIndex
Copyright © 2019. All rights reserved.