+911turbos Posted April 25, 2006 Share Posted April 25, 2006 Hi All, This is my first post. I'm currently programming a "Geocaching Travel Planner" windows app (written in c++). It's kind of a mix between GSAK, N-Route and maps.google.com. It currently supports loading in GPX files and running filters on them, and viewing the waypoints on a google map ( it also tracks your position if you have a Garmin GPS18 connected). I'm just adding support for OZI explorer maps as well. I have them loading and displaying but not displaying the caches in the right positions. I need the math for converting a pixel coord into a lat/lon ( and vice versa ) using the 4 arbitrary pixel points on the map and their 4 lat/lons. Can anyone help me with the math? MMPXY,1,99,117 MMPXY,2,1066,116 MMPXY,3,1067,1045 MMPXY,4,95,1044 MMPLL,1,-173.695056, 66.379964 MMPLL,2, -5.492876, 66.519704 MMPLL,3, -62.044177, 33.988929 MMPLL,4,-117.511879, 33.912850 Plans for the future are to load MapSource and CitySelect maps as well and do street routing between waypoints. I've found some docs for their secret format but any additional info would be greatly appreciated. Thanks Kevin Pickell 911Turbos Quote Link to comment
+Red90 Posted April 26, 2006 Share Posted April 26, 2006 I have emailed you, but to help bump your topic. First you need to know the projection method used to make the map. For the sake of going somewhere, I would assume "Universal Transverse Mercator". Equations for converting for X, Y to Lon/Lat and back are at this link. Quote Link to comment
+Red90 Posted April 26, 2006 Share Posted April 26, 2006 UTM to Lat/Lon source code in C here: http://www.gpsy.com/gpsinfo/geotoutm/ Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.