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 and Description |
---|---|
class |
GeometryItemDistance
An
ItemDistance function for
items which are Geometry s,
using the Geometry.distance(Geometry) method. |
Modifier and Type | Method and Description |
---|---|
boolean |
STRtree.isWithinDistance(STRtree tree,
ItemDistance itemDist,
double maxDistance)
Tests whether some two items from this tree and another tree
lie within a given distance.
|
Object |
STRtree.nearestNeighbour(Envelope env,
Object item,
ItemDistance itemDist)
Finds the item in this tree which is nearest to the given
Object ,
using ItemDistance as the distance metric. |
Object[] |
STRtree.nearestNeighbour(Envelope env,
Object item,
ItemDistance itemDist,
int k)
Finds up to k items in this tree which are the nearest neighbors to the given
item ,
using itemDist as the distance metric. |
Object[] |
STRtree.nearestNeighbour(ItemDistance itemDist)
Finds the two nearest items in the tree,
using
ItemDistance as the distance metric. |
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 © 2022. All rights reserved.