[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [marble] src/lib/geodata/data: GeoDataLatLonBox: contain one pole if crossing the IDL an odd number
From: Thibaut Gridel <tgridel () free ! fr>
Date: 2013-03-11 22:16:53
Message-ID: 20130311221653.C27F2A60FB () git ! kde ! org
[Download RAW message or body]
Git commit 8895e3b3213d0029971a3d2b4001a9d96915ae17 by Thibaut Gridel.
Committed on 20/02/2013 at 19:13.
Pushed by tgridel into branch 'master'.
GeoDataLatLonBox: contain one pole if crossing the IDL an odd number of times
M +6 -0 src/lib/geodata/data/GeoDataLatLonBox.cpp
http://commits.kde.org/marble/8895e3b3213d0029971a3d2b4001a9d96915ae17
diff --git a/src/lib/geodata/data/GeoDataLatLonBox.cpp b/src/lib/geodata/data/GeoDataLatLonBox.cpp
index fed5e2b..d433e5f 100644
--- a/src/lib/geodata/data/GeoDataLatLonBox.cpp
+++ b/src/lib/geodata/data/GeoDataLatLonBox.cpp
@@ -679,6 +679,12 @@ GeoDataLatLonBox GeoDataLatLonBox::fromLineString( const GeoDataLineString& lin
|| west <= east ) {
east = +M_PI;
west = -M_PI;
+ // if polygon fully in south hemisphere, contain south pole
+ if( north < 0 ) {
+ south = -M_PI/2;
+ } else {
+ north = M_PI/2;
+ }
}
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic