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

GeoPath behavior with identical points

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.7, 7.4, 8.0
    • Component/s: modules/spatial3d
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      GeoPath has the current behavior:

      • When provided a path with two consecutive identical points: In all cases it generates an IllegalArgumentException because it tries to build a plane with those two points.
      • When provided a path with two consecutive numerical identical points: In case of GeoStandardPath it throws an IllegalArgumentException because the path is too short. The case of GeoDegeneratePath is more complicated as it builds the path but the plane can be bogus. In some cases points on the other side of the world can be "In Set".

      I think the factory should filter out these points, in the same way it is done for GeoPolygon. If this is not the desired behavior then the factory  should throw a consistent IllegalArgumentException in all cases.

        Attachments

        1. LUCENE-8326.patch
          3 kB
          Ignacio Vera

          Activity

            People

            • Assignee:
              ivera Ignacio Vera
              Reporter:
              ivera Ignacio Vera
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: