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

cleanup some sandiness around LatLonPoint

    Details

    • Type: Test
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.0
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      A few improvements to make this less sandy: geo stuff tends to get complicated so we can try to make the simple stuff right

      • encode/decode tests became useless because all tested points were quantized
      • explicitly test extreme values (field creation and quantization error)
      • encoding could overflow integer for the maximum possible value
      • turn encoder checks into real checks
      • add assert on decode that decoded values are within bounds
      • test various illegal parameters
      • add setLocation(double, double) to change value for the field
      • improve javadocs
      • fix toString bug in distance query
      • make distance and polygon queries package private
      • add missing numDims/bytesPerDim checks to distance and polygon query

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              rcmuir Robert Muir
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: