Community of VE/MapPoint Users and Developers
This is a discussion on lat lon conversion from mappoint format back to gps sentence within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I use the following to convert from nmea gps format to mappoint format. How would I convert back? Public Function ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| lat lon conversion from mappoint format back to gps sentence How would I convert back? Public Function ConvertNMEA(sNMEA As String) As Double 'expects N47.36981 from GPS sentence 'returns -47.61635 mappoint format On Local Error Resume Next Dim sTmp As String Dim dRetVal As Double sTmp = Left(sNMEA, 1) sNMEA = Mid(sNMEA, 2) dRetVal = Int(sNMEA / 100) + (sNMEA - Int(sNMEA / 100) * 100) / 60 'add + - Select Case sTmp Case "N" 'nothing or + Case "S" dRetVal = "-" & dRetVal Case "E" 'nothing or + Case "W" dRetVal = "-" & dRetVal End Select ConvertNMEA = dRetVal End Function |
| ||||
|
Please provide examples of the strings.. also, see Evert Mouw's article: http://www.mp2kmag.com/articles.asp?ArticleID=75 That may be of help.. keywords: lat/lon, latitude, longitude, gps, nmea, string format, convert
__________________ |
![]() |
| Tags |
| back, conversion, format, gps, lat, lon, mappoint, sentence |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Delphi/Mappoint - Modal Form looses Focus & sent to back | PinnacleDev | MapPoint 2006/2009 Discussion | 2 | 12-06-2004 11:35 AM |
| nmea sentence | Anonymous | MapPoint 2006/2009 Discussion | 0 | 03-09-2004 07:36 AM |
| MapPoint Data Format | Anonymous | MapPoint 2006/2009 Discussion | 4 | 02-27-2004 11:13 AM |
| MapPoint format specification | Anonymous | MapPoint 2006/2009 Discussion | 0 | 05-19-2003 10:57 AM |
| Aztec log format/conversion to MapPoint | Anonymous | MapPoint 2006/2009 Discussion | 1 | 10-28-2002 10:16 AM |