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 TypeClassDescriptionclassAnItemDistancefunction for items which areGeometrys, using theGeometry.distance(Geometry)method.Methods in org.locationtech.jts.index.strtree with parameters of type ItemDistanceModifier and TypeMethodDescriptionbooleanSTRtree.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, usingItemDistanceas 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, usingitemDistas the distance metric.Object[]STRtree.nearestNeighbour(ItemDistance itemDist) Finds the two nearest items in the tree, usingItemDistanceas the distance metric.Object[]STRtree.nearestNeighbour(STRtree tree, ItemDistance itemDist) Finds the two nearest items from this tree and another tree, usingItemDistanceas the distance metric.