You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
east-west size of the bounding box is set by converting meters to degrees and multiplying with cosLat. This results in narrower bouding boxes (in degrees) for high latitude.
But actually the bouding boxes with the same e-w width in metes should get wider if we go towards the poles.
Proposed solution:
change to (radius_ew * BackendService.METER_TO_DEG) / cosLat;
and change
to ((east - center_lon) * BackendService.DEG_TO_METER) * cosLat
The text was updated successfully, but these errors were encountered:
Helium314
changed the title
Bouding box uses wrong conversion from degrees to meters
Bouding box uses wrong conversion between degrees and meters
Feb 28, 2022
in
DejaVu/app/src/main/java/org/fitchfamily/android/dejavu/BoundingBox.java
Lines 91 to 92 in e54aae2
east-west size of the bounding box is set by converting meters to degrees and multiplying with
cosLat
. This results in narrower bouding boxes (in degrees) for high latitude.But actually the bouding boxes with the same e-w width in metes should get wider if we go towards the poles.
Proposed solution:
change to
(radius_ew * BackendService.METER_TO_DEG) / cosLat;
and change
DejaVu/app/src/main/java/org/fitchfamily/android/dejavu/BoundingBox.java
Line 134 in e54aae2
((east - center_lon) * BackendService.DEG_TO_METER) * cosLat
The text was updated successfully, but these errors were encountered: