Uploaded image for project: 'Spatial Information Systems'
  1. Spatial Information Systems
  2. SIS-347

Extents.area(GeographicBoundingBox) returns 0 if the longitude range is 360° large.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.4, 0.5, 0.6, 0.7
    • Fix Version/s: 0.8
    • Component/s: Metadata
    • Labels:
      None

      Description

      Steps to reproduce:

      DefaultGeographicBoundingBox box = new DefaultGeographicBoundingBox();
      box.setBounds(-180, +180, -90, 90);
      System.out.println(Extents.area(box));
      

      The above computes zero with SIS 0.7. The reason is in the line that take in account boxes crossing the anti-meridian; the span reduction performed there is a little bit too much aggressive.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                desruisseaux Martin Desruisseaux
                Reporter:
                desruisseaux Martin Desruisseaux
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: