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.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.4, 0.5, 0.6, 0.7
    • 0.8
    • Metadata
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: