Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 2 of 2

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

  1. #1
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    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

  2. #2
    Eric Frost's Avatar
    Eric Frost is offline Administrator Black Belt
    Join Date
    Jul 1992
    Posts
    5,094
    Blog Entries
    4
    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
    ~ Order MapPoint MapPoint 2013 Here and Get Free Access to the MapForums Downloads ~
    ~~
    ~ Upgrade to Get Access to the MapForums Downloads ~

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Delphi/Mappoint - Modal Form looses Focus & sent to back
    By PinnacleDev in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 12-06-2004, 10:35 AM
  2. nmea sentence
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 03-09-2004, 06:36 AM
  3. MapPoint Data Format
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 02-27-2004, 10:13 AM
  4. MapPoint format specification
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 05-19-2003, 09:57 AM
  5. Aztec log format/conversion to MapPoint
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 10-28-2002, 09:16 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


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 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83