diff --git a/GeoSpatialTools/quadtree.py b/GeoSpatialTools/quadtree.py index cf41cc69639831d183fc144c603f03e359bb5f90..152b90b5f1c40d8d77e1fd7865ebe0005c1c0385 100644 --- a/GeoSpatialTools/quadtree.py +++ b/GeoSpatialTools/quadtree.py @@ -240,6 +240,8 @@ class Ellipse: self.a = a self.b = b self.lon = lon + if self.lon > 180: + self.lon = ((self.lon + 540) % 360) - 180 self.lat = lat # theta is anti-clockwise angle from horizontal in radians self.theta = theta