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
cfdb2d7e
Commit
cfdb2d7e
authored
5 months ago
by
Joseph Siddons
Browse files
Options
Download
Email Patches
Plain Diff
fix: account for Rectangle fully inside another in intersects method
parent
70d3df9c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
4 deletions
+16
-4
GeoSpatialTools/octtree.py
GeoSpatialTools/octtree.py
+8
-2
GeoSpatialTools/quadtree.py
GeoSpatialTools/quadtree.py
+8
-2
No files found.
GeoSpatialTools/octtree.py
View file @
cfdb2d7e
...
...
@@ -224,8 +224,14 @@ class SpaceTimeRectangle:
# Other is fully south of self
return
False
# Handle east / west edges
return
self
.
_test_east_west
(
other
.
west
)
or
self
.
_test_east_west
(
other
.
east
return
(
self
.
_test_east_west
(
other
.
west
)
or
self
.
_test_east_west
(
other
.
east
)
# Fully contained within other
or
(
other
.
_test_east_west
(
self
.
west
)
and
other
.
_test_east_west
(
self
.
east
)
)
)
def
nearby
(
...
...
This diff is collapsed.
Click to expand it.
GeoSpatialTools/quadtree.py
View file @
cfdb2d7e
...
...
@@ -192,8 +192,14 @@ class Rectangle:
# Other is fully south of self
return
False
# Handle east / west edges
return
self
.
_test_east_west
(
other
.
west
)
or
self
.
_test_east_west
(
other
.
east
return
(
self
.
_test_east_west
(
other
.
west
)
or
self
.
_test_east_west
(
other
.
east
)
# Fully contained within other
or
(
other
.
_test_east_west
(
self
.
west
)
and
other
.
_test_east_west
(
self
.
east
)
)
)
def
nearby
(
...
...
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