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/05/02 12:31:04 UTC
[jira] [Closed] (SIS-347) Extents.area(GeographicBoundingBox) returns 0 if the longitude range is 360° large.
[ https://issues.apache.org/jira/browse/SIS-347?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Desruisseaux closed SIS-347.
-----------------------------------
> 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.15#6346)