me-azharahmed / osmdroid

Automatically exported from code.google.com/p/osmdroid
0 stars 0 forks source link

BoundingBoxE6 fromGeoPoints() mismatch between min and max lat/lon #359

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
In BoundingBoxE6.java, when building a box using BoundingBoxE6.fromGeoPoints(), 
this causes north/south and east/west values to be inversed. 

This is due to the final construction: 

    return new BoundingBoxE6(minLat, minLon, maxLat, maxLon);

should be replaced by:
    return new BoundingBoxE6(maxLat, maxLon, minLat, minLon);

(because North > South and East > West)

What version of the product are you using? On what operating system?
osmdroid 3.0.8

Original issue reported on code.google.com by mathieu....@gmail.com on 16 Jul 2012 at 1:26

GoogleCodeExporter commented 8 years ago
I wonder what happens around the date line...

Original comment by neilboyd on 16 Jul 2012 at 2:55

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r1240.

Original comment by kurtzm...@gmail.com on 31 May 2013 at 9:06