Uses of Interface
org.locationtech.jts.index.strtree.ItemDistance
Packages that use ItemDistance
Package
Description
Contains 2-D and 1-D versions of the Sort-Tile-Recursive (STR) tree, a query-only R-tree.
-
Uses of ItemDistance in org.locationtech.jts.index.strtree
Classes in org.locationtech.jts.index.strtree that implement ItemDistanceModifier and TypeClassDescriptionclass
AnItemDistance
function for items which areGeometry
s, using theGeometry.distance(Geometry)
method.Methods in org.locationtech.jts.index.strtree with parameters of type ItemDistanceModifier and TypeMethodDescriptionboolean
STRtree.isWithinDistance
(STRtree tree, ItemDistance itemDist, double maxDistance) Tests whether some two items from this tree and another tree lie within a given distance.STRtree.nearestNeighbour
(Envelope env, Object item, ItemDistance itemDist) Finds the item in this tree which is nearest to the givenObject
, usingItemDistance
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 givenitem
, usingitemDist
as the distance metric.Object[]
STRtree.nearestNeighbour
(ItemDistance itemDist) Finds the two nearest items in the tree, usingItemDistance
as the distance metric.Object[]
STRtree.nearestNeighbour
(STRtree tree, ItemDistance itemDist) Finds the two nearest items from this tree and another tree, usingItemDistance
as the distance metric.