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
  #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,322
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


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 10:35 AM
nmea sentence Anonymous MapPoint 2006/2009 Discussion 0 03-09-2004 06:36 AM
MapPoint Data Format Anonymous MapPoint 2006/2009 Discussion 4 02-27-2004 10:13 AM
MapPoint format specification Anonymous MapPoint 2006/2009 Discussion 0 05-19-2003 09:57 AM
Aztec log format/conversion to MapPoint Anonymous MapPoint 2006/2009 Discussion 1 10-28-2002 09:16 AM


All times are GMT -5. The time now is 01:08 AM.


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

Ski Resort
Pick a destination. Pick a ski resort. Pick up your skis. Pick up your poles. Holiday Hypermarket makes it simple and fast to find a ski resort for you.

City Breaks
Book a city break with Travel Counsellors. A personal travel advisor will help you make the most of your city break.

Cheap Flight
Find cheap flights online at dealchecker.co.uk. We search the latest offers from the UK's leading Travel Agents, Tour Operators and Airlines.

Holidays to Sri Lanka
Holidays to Sri Lanka are enriched by the glittering tapestry of culture and breath taking mountain views. Book a holiday there today!

Holiday
Searching for the perfect holiday? Well check out ULookUBook online to find out all about your destination and also to book a great value holiday.

Bargain family holidays
We can help you find family holidays at bargain prices when you check out the options at Travel.co.uk

Cheap Sharm Holidays
Get info on cheap Sharm holidays at On The Beach, and enjoy Egyptian nightlife!


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