sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Desruisseaux (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (SIS-347) Extents.area(GeographicBoundingBox) returns 0 if the longitude range is 360° large.
Date Mon, 16 Jan 2017 10:11:26 GMT

     [ https://issues.apache.org/jira/browse/SIS-347?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Martin Desruisseaux resolved SIS-347.
-------------------------------------
    Resolution: Fixed

Fixed as of revision 1779003.

> 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.4, 0.5, 0.6, 0.7
>            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)

Mime
View raw message