Class GeometryItemDistance

java.lang.Object
org.locationtech.jts.index.strtree.GeometryItemDistance
All Implemented Interfaces:
ItemDistance

public class GeometryItemDistance extends Object implements ItemDistance
An ItemDistance function for items which are Geometrys, using the Geometry.distance(Geometry) method.

To make this distance function suitable for using to query a single index tree, the distance metric is anti-reflexive. That is, if the two arguments are the same Geometry object, the distance returned is Double.MAX_VALUE.

Author:
Martin Davis
  • Constructor Details

    • GeometryItemDistance

      public GeometryItemDistance()
  • Method Details