Uploaded image for project: 'Apache Sedona'
  1. Apache Sedona
  2. SEDONA-204

Init value in X/Y/Z max should be -Double.MAX

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.3.1

    Description

      The initial value in XMax, YMax, ZMax (https://github.com/apache/incubator-sedona/blob/master/common/src/main/java/org/apache/sedona/common/Functions.java#L133)

      should be -Double.MAX_VALUE since the coordinates can be negative.

       

      Double.MIN_VALUE is not negative. See https://stackoverflow.com/questions/3884793/why-is-double-min-value-in-not-negative

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jiayu Jia Yu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m