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

Allow arbitrary bbox lat-lon, not limited to circle

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.1
    • None
    • spatial

    Description

      The Spatial Search documentation states that you can create your own bounding box using a range query:
      "Since the LatLonType field also supports field queries and range queries, one can manually create their own bounding box rather than using bbox: ...&q=:&fq=store:[45,-94 TO 46,-93]"

      This works unless your range covers an area where longitude goes from 180 to -180. For instance I want all items in the longitude range of
      178 to -177 which of course gives no results (it is not a valid numeric range). It's not really surprising that this doesn't work as it is just a standard range query with no spatial filters being applied.

      UPDATE
      Updated issue to be an enhancement, title changed.

      Desired functionality is for bbox to accept coordinate parameters for an arbitrary size bounding box. The bbox should take into account the prime meridians, in particular the 180th meridian.
      Documentation also needs to be updated to remove incorrect query example.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ztsmith Zac Smith
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: