Shikhar13 / codenameone

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

Mercator.inverse() mixes up latitude and longitude #200

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Coord c = new Coord(1,2);
2. c = Mercator.forwardMercator(c.getLatitude, c.getLongitude);
3. c = Mercator.inverseMercator(c.getLatidude, c.getLongitude);
4. System.out.println(c.toString());

What is the expected output? What do you see instead?
i expect that latitude is 1 and longitude is 2 but
latitude is 2, longitude is 1

What version of the product are you using? On what operating system?
latest codenameone

Please provide any additional information below.
it took me some hours to find out that ;)

Original issue reported on code.google.com by tron.cos...@gmail.com on 28 May 2012 at 10:19

GoogleCodeExporter commented 9 years ago
i mean of cause Mercator.inverseMercator()

Original comment by tron.cos...@gmail.com on 28 May 2012 at 10:20

GoogleCodeExporter commented 9 years ago
Assigning to Chen

Original comment by shai.almog on 29 May 2012 at 3:22

GoogleCodeExporter commented 9 years ago
fixed, thanks

Original comment by cf27...@gmail.com on 30 May 2012 at 12:09

GoogleCodeExporter commented 9 years ago

Original comment by cf27...@gmail.com on 30 May 2012 at 12:11