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
85e8782a
Commit
85e8782a
authored
5 months ago
by
Joseph Siddons
Browse files
Options
Download
Email Patches
Plain Diff
fix: edge_dist should check north/south not east/west for crossing equator
parent
762dfafa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
GeoSpatialTools/octtree.py
GeoSpatialTools/octtree.py
+1
-1
GeoSpatialTools/quadtree.py
GeoSpatialTools/quadtree.py
+1
-1
No files found.
GeoSpatialTools/octtree.py
View file @
85e8782a
...
...
@@ -178,7 +178,7 @@ class SpaceTimeRectangle:
haversine
(
self
.
lon
,
self
.
lat
,
self
.
east
,
self
.
north
),
haversine
(
self
.
lon
,
self
.
lat
,
self
.
east
,
self
.
south
),
)
if
self
.
east
*
self
.
west
<
0
:
if
self
.
north
*
self
.
south
<
0
:
corner_dist
=
max
(
corner_dist
,
haversine
(
self
.
lon
,
self
.
lat
,
self
.
east
,
0
),
...
...
This diff is collapsed.
Click to expand it.
GeoSpatialTools/quadtree.py
View file @
85e8782a
...
...
@@ -151,7 +151,7 @@ class Rectangle:
haversine
(
self
.
lon
,
self
.
lat
,
self
.
east
,
self
.
north
),
haversine
(
self
.
lon
,
self
.
lat
,
self
.
east
,
self
.
south
),
)
if
self
.
east
*
self
.
west
<
0
:
if
self
.
north
*
self
.
south
<
0
:
corner_dist
=
max
(
corner_dist
,
haversine
(
self
.
lon
,
self
.
lat
,
self
.
east
,
0
),
...
...
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