MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




lat lon conversion from mappoint format back to gps sentence

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 ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-09-2002
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
lat lon conversion from mappoint format back to gps sentence

I use the following to convert from nmea gps format to mappoint format.

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 09-10-2002
Eric Frost's Avatar
Senior Member
Black Belt
 
Join Date: Jul 1992
Posts: 2,465
Blog Entries: 1
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
__________________
~ Now taking orders for MapPoint 2009 ~
~
~ Upgrade to MapForums Plus membership ~
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -5. The time now is 07:09 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54