Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-13467

Spatial: Add S2 lib for more efficient Geo3D indexes

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 8.2
    • documentation, spatial
    • None

    Description

      Here I'm adding a dependency on Google S2 Geometry (121KB) so that we can use prefixTree="s2" on a spatial field type that is using Geo3D. Lucene spatial-extras already has this dependency, albeit it is optional. I enhanced tests to exercise it.
      Additionally, I document here a strictness Geo3D has in which the polygon points must be provided in a particular order or else the interpretation of the shape is inverted. This so-called "right hand rule" order is somewhat standard but some libs (like JTS) don't care.

      Attachments

        1. SOLR-13467.patch
          26 kB
          David Smiley

        Issue Links

          Activity

            People

              dsmiley David Smiley
              dsmiley David Smiley
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: