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

Rectangle should extend LatLonGeometry

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8.5
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      Rectangle class is the only geometry class that do not extend LatLonGeometry. This is because we have an specialise query for rectangles that works on the encoded space (very similar to what LatLonPoint is doing).

      It would be nice if Rectangle could implement LatLonGeometry, so in cases where a bounding box is part of a complex geometry, it can fall back to Component2D objects.

      The idea is to move the specialise logic in Rectangle2D inside the specialised LatLonBoundingBoxQuery and rename the current XYRectangle2D to Rectangle2D.

        Attachments

          Issue Links

            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:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h
                  1h