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

PlanetObject Interface

Details

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

    Description

      Hi daddywri,

      I propose to add a new interface call PlanetObject which all shapes should implement. It is actually extracted from class BasePlanetObject. The motivation is that currently the method getPlanetModel() is not visible and therefore there is no possibility to know to which PlanetModel a shape belongs to.

      The side effect for this change is that the constructors for composite shapes change as they need to be created with a PlanetModel. I think this is correct as then we can check the planet model when adding a shape and make sure all objects in a composite belongs to the same Planet model.

      In addition, we check that two shape belongs to the shape Planet model when calling getRelationship(GeoShape geoShape).

      Attachments

        1. LUCENE-7934.patch
          20 kB
          Ignacio Vera

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: