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 8385555
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T17:42:01+00:00 2026-06-09T17:42:01+00:00

I have a program that prints a pictures longitude and latitude. The program prints

  • 0

I have a program that prints a pictures longitude and latitude. The program prints both of them into a format of: Degrees, minutes, seconds.

As I want to generate a KML file for GoogleEarth and GoogleEarth only supports decimal degrees, I need to think of a way of converting the coordinates.

Everytime I do the maths paper based, I get an incorrect answer. Could someone point out to me where Im going wrong.

I have the coordinates –

+51° 26′ 13.57″, -2° 34′ 38.55″

I’ve been told to calculate it like this. Add 51 plus 26/60 plus 13.57/3600.

The correct answer should be –

51.437103, -2.577375

My next issue would be breaking down the string into the different segments as the metadata library I use prints the coordinates out as one individual string.

  • 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-09T17:42:01+00:00Added an answer on June 9, 2026 at 5:42 pm

    The method you learned is fine, if you query google for (51+26/60+13.57/3600) you get (51.4371028), and same for -(2+34/60+38.55/3600), where you get (-2.577375). On some programming languages you have to be careful with / which, when given integer parameters, truncs the result of the operation (in which case you want to cast the divisor or the dividend to floating point).

    The part of breaking the string highly depends on which language you are working on/comfortable in.

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

Sidebar

Related Questions

I have program that prints the highest interval every 5 minutes. I have previously
I want to build a program that prints the current screen (every few seconds)
I have a command line program that prints out a report such as: I
I have one application that prints messages from Test.exe in console .My java program
I have program that runs fast enough. I want to see the number of
I have a program that I want to distribute, without giving the source code
I have a (java) program that prints a line of hex numbers to stdout
I have a Java program that creates a file and prints a bunch of
I have a program that prints out the location of commas in a paragraph
I have a terribly uncomplicated test program that prints out the following numbers. i.e.

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.