You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sis.apache.org by "Martin Desruisseaux (JIRA)" <ji...@apache.org> on 2017/01/16 10:07:26 UTC

[jira] [Created] (SIS-347) Extents.area(GeographicBoundingBox) returns 0 if the longitude range is 360° large.

Martin Desruisseaux created SIS-347:
---------------------------------------

             Summary: Extents.area(GeographicBoundingBox) returns 0 if the longitude range is 360° large.
                 Key: SIS-347
                 URL: https://issues.apache.org/jira/browse/SIS-347
             Project: Spatial Information Systems
          Issue Type: Bug
          Components: Metadata
    Affects Versions: 0.7, 0.6, 0.5, 0.4
            Reporter: Martin Desruisseaux
            Assignee: Martin Desruisseaux
             Fix For: 0.8


Steps to reproduce:

{code:java}
DefaultGeographicBoundingBox box = new DefaultGeographicBoundingBox();
box.setBounds(-180, +180, -90, 90);
System.out.println(Extents.area(box));
{code}

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.




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)