Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7923589
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T17:22:27+00:00 2026-06-03T17:22:27+00:00

I was posting similar post already. And I did get an answer in theory

  • 0

I was posting similar post already. And I did get an answer in theory but I really need somone to help me.

So I am using this EXAMPLE for testing my GPS. What I want to do is how to get standard decimal values like 56,322415 for latitude and longitude.
Because now I am getting 5304,254 value.

I need it in this form because I will use this for Google maps.

Can you check code and tell me what should I left out or how to convert it to WGS84 format.

Thank you.

EDIT:

Here is the picture that is explaining what I see when I run the program
enter image description here

And this is the one that is one the codeproject page:

enter image description here

EDIT 2:

So when I use THIS CONVERTER to see what decimal values I need to get when I have degrees I don’t get the same values.

This is the value that I should get :

enter image description here

And this is the value that I get in the program:

46.64662666666667

Any idea why I can’t get same conversion?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T17:22:28+00:00Added an answer on June 3, 2026 at 5:22 pm

    the following line in the ParseNMEA function is the one that does the conversion from WGS84 to the British Ordinance Survey coordinates:

    return Transform(deciLat, deciLon, height);
    

    so if you remove that line and just use deciLat and deciLon values, you should be fine…

    Addition after question update:

    The code you’re referring to does not take local number formats into account, so if this goes wrong, it might be because of erroneous decimal symbol matching.

    You can use the following functions to do the conversion, presuming the input is always in the invariant culture (with decimal points):

    string[] arrLon = strLon.Split(new char[]{'°', '"'}, StringSplitOptions.RemoveEmptyEntries);
    double dblLon = double.Parse(arrLon[0]) + double.Parse(arrLon[1], new System.Globalization.NumberFormatInfo()) / 60;
    double deciLon = arrLon[2] == "E" ? dblLon : - dblLon;
    

    Additional info:

    NumberFormatInfo: http://msdn.microsoft.com/en-us/library/system.globalization.numberformatinfo.aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a similar post on this on StackOverflow but perhaps my misunderstanding is
I am posting this in hopes that someone might have dealt with a similar
In another question , I asked something similar but I ended up just posting
first time posting here. I'm using a loop to create 3 buttons, but my
I saw this posting which explained how to get BC3 working as the diff
I've been able to post Open Graph actions using my own account, but I'm
I noticed prior to posting this question that there have been similar questions posted
This is in continuation of my previous questions (sorry for re-posting similar type of
Okay this is similar to my last question but what I ended up doing
I've found a couple similar posts regarding this same problem, but none of the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.