Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-7942

For Geo3d paths, aggregating distance values using "+" is not adequate for squared distances

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 6.7, 7.1, 8.0
    • modules/spatial3d
    • None
    • New

    Description

      The GeoStandardPath object aggregates distances segment by segment using simple addition. For some kinds of Distance computations, though, addition is not an adequate way to do this. The xxxSquaredDistance computations, for example, do not produce true squared distances but rather a distance metric that is a combination of both squared and linear.

      I propose adding support in Distance for aggregation, which would allow distance calculators to compute an accurate distance (at some computational cost) instead.

      Attachments

        Activity

          People

            kwright@metacarta.com Karl Wright
            kwright@metacarta.com Karl Wright
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: