-
Notifications
You must be signed in to change notification settings - Fork 94
Fix/in point box for latlon #1207
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix/in point box for latlon #1207
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1207 +/- ##
==========================================
+ Coverage 88.43% 88.44% +0.01%
==========================================
Files 196 196
Lines 6157 6173 +16
==========================================
+ Hits 5445 5460 +15
- Misses 712 713 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
First round of review attached.
Co-authored-by: Júlio Hoffimann <[email protected]>
Thank you @debsankha. Could you please elaborate on the |
Happy to do so. So the function is function inlonrange(lonₗ, lonₚ, lonᵣ)
if isnegative(lonₗ) && isnonnegative(lonᵣ)
lonₚ ≤ lonₗ || (isnonnegative(lonₚ) && lonₚ ≤ lonᵣ)
else
lonₗ ≤ lonₚ ≤ lonᵣ
end
end The cases are:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @debsankha for the clear explanation and contribution ❤️
Released a patch with the fix: JuliaRegistries/General#132717 |
WHAT
This fixes #1203, a bug in
Base.in(p::Point{🌐}, b::Box{🌐})
.HOW
Defining a new method for geometries on 🌐.