Hi, I had a problem with GoogleMercator and couldn't find a suitable thread in the group. Since I finally got the solution I thought I'd post it here for everyone else facing the same problem.
But first things first. My problem was that I needed a projection from lat/lon GeoPoints into x/y coordinates in a cartesian coordinate system. However, I didn't want to project into pixelspace but rather have a metric deviation from GeoPoint(0,0). I read that GoogleMercator projection would do the trick. The good thing about Mercator is that once you're in x/y space everything's metric and you can do distance calculations without converting from pixel to meters. So to make it short, here's my solution: I found a proj.4 port for java here at <a href="http://www.jhlabs.com/java/maps/proj/">http:// www.jhlabs.com/java/maps/proj/</a> Problem is that the needed classes require java.awt which is not supported by Android. The lib mainly uses awt to put coordinates into a Point2D.Double so changing all Point2D into double[2] did the trick. Now I could use the proj.4 parameters for GoogleMercator to get the results I wanted: +proj=merc +latts=0 +lon0=0 +k=1.0 +x0=0 +y0=0 +a=6378137.0 +b=6378137.0 +units=m Let me know if the post helped you and if you need the edited lib for Mercator Projection. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

