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

Add interface for point shapes

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 6.7, 7.1, 8.0
    • modules/spatial3d
    • None
    • New

    Description

      Hi daddywri,

      Just one more thing .

      One of the shapes I normally use is a point shape. There is not such an interface so what I do currently is to build degenerated circles (circles with radius equal to 0) when I need such a shape. Still looks weird to have GeoCircles when you are dealing with points.

      My proposal is the following:

      1) Add interface for point shapes which extends GeoCircle and GeoBBox. Not sure which name is appropiate but my take would be to call it GeoLatLonPoint.
      2) Make GeoDegeneratedPoint implement this interface.
      3) Add a factory to build GeoLatLonPoint .

      I am adding athe patch shortly.

      Thanks!

      Attachments

        1. LUCENE-7947.patch
          4 kB
          Ignacio Vera
        2. LUCENE-7947.patch
          4 kB
          Ignacio Vera

        Activity

          People

            kwright@metacarta.com Karl Wright
            ivera Ignacio Vera
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: