in
|
double locEast = lon + (radius_ew * BackendService.METER_TO_DEG) * cosLat; |
|
double locWest = lon - (radius_ew * BackendService.METER_TO_DEG) * cosLat; |
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
|
radius_ew = (float)(((east - center_lon) * BackendService.DEG_TO_METER) / cosLat); |
to
((east - center_lon) * BackendService.DEG_TO_METER) * cosLat
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