Class HaversineItemDistance

java.lang.Object
org.apache.sedona.core.knnJudgement.HaversineItemDistance
All Implemented Interfaces:
org.locationtech.jts.index.strtree.ItemDistance

public class HaversineItemDistance extends Object implements org.locationtech.jts.index.strtree.ItemDistance
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    distance(org.locationtech.jts.geom.Geometry geometry1, org.locationtech.jts.geom.Geometry geometry2)
     
    double
    distance(org.locationtech.jts.index.strtree.ItemBoundable item1, org.locationtech.jts.index.strtree.ItemBoundable item2)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • HaversineItemDistance

      public HaversineItemDistance()
  • Method Details

    • distance

      public double distance(org.locationtech.jts.index.strtree.ItemBoundable item1, org.locationtech.jts.index.strtree.ItemBoundable item2)
      Specified by:
      distance in interface org.locationtech.jts.index.strtree.ItemDistance
    • distance

      public double distance(org.locationtech.jts.geom.Geometry geometry1, org.locationtech.jts.geom.Geometry geometry2)