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)

Reply via email to