Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Joseph Siddons
GeoSpatialTools
Commits
c5f7a0f2
Commit
c5f7a0f2
authored
5 months ago
by
Joseph Siddons
Browse files
Options
Download
Email Patches
Plain Diff
fix: ensure lon is -180, 180 in Ellipse class
parent
4f6461e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
GeoSpatialTools/quadtree.py
GeoSpatialTools/quadtree.py
+2
-0
No files found.
GeoSpatialTools/quadtree.py
View file @
c5f7a0f2
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment