Package | Description |
---|---|
org.locationtech.jts.index.strtree |
Contains 2-D and 1-D versions of the Sort-Tile-Recursive (STR) tree, a query-only R-tree.
|
Modifier and Type | Class | Description |
---|---|---|
class |
GeometryItemDistance |
An ItemDistance function for
items which are
Geometry s,
using the Geometry.distance(Geometry) method. |
Modifier and Type | Method | Description |
---|---|---|
java.lang.Object |
STRtree.nearestNeighbour(Envelope env,
java.lang.Object item,
ItemDistance itemDist) |
Finds the item in this tree which is nearest to the given
Object ,
using ItemDistance as the distance metric. |
java.lang.Object[] |
STRtree.nearestNeighbour(Envelope env,
java.lang.Object item,
ItemDistance itemDist,
int k) |
Finds k items in this tree which are the top k nearest neighbors to the given
item ,
using itemDist as the distance metric. |
java.lang.Object[] |
STRtree.nearestNeighbour(ItemDistance itemDist) |
Finds the two nearest items in the tree,
using
ItemDistance as the distance metric. |
java.lang.Object[] |
STRtree.nearestNeighbour(STRtree tree,
ItemDistance itemDist) |
Finds the two nearest items from this tree
and another tree,
using
ItemDistance as the distance metric. |
Copyright © 2018. All rights reserved.