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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T15:09:57+00:00 2026-06-07T15:09:57+00:00

I am looking for a free geo data class library. I need to convert

  • 0

I am looking for a free geo data class library. I need to convert different formats of Latitude / Longitude values (e.g as here), get distances between lat/lng values, coordinates in range, etc.

Google shows me several single methods / functions in C++, this is not the issue. Examples

  1. Calculating the distance between 2 latitudes and longitudes that are saved in a text file?
  2. Lat Long: http://www.codecogs.com/code/maths/geometry/spherical/latlong.php

What I am looking for is a more complete / sophisticated class library with some documentation and examples. Any hints?

— Edit —

LatLong is such a library in Javascript: http://www.movable-type.co.uk/scripts/latlong.html
Will also check (C++): http://geographiclib.sourceforge.net/html/annotated.html

— Edit 2 —

The transformation approach below is a good starter, however, if there are other great libs please let me know. Thanks to all who have contributed.

  • 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-07T15:09:58+00:00Added an answer on June 7, 2026 at 3:09 pm

    proj4 is what you’re looking for. It’s a serious mapping tool, mature and well respected projection api. It’s predominantly popular for doing forward and backward conversion between geographical coordinates (lat/lng) and planar (x,y). Coordinate geometry with planar coordinates is much simpler than with geographical.

    Documentation is not the best. Because it can also be used as a stand-alone program, I’d start off reading the man page to get an introduction. The command-line switches are the same parameters used to initialise the structure when using the api. Then read the api docs – the function calls listed under Basic API functions may very well be all you need.

    Edit with what started off as a comment to OP: Projecting to planar coordinates is attractive for many reasons: Coordinate comparisons are then in linear units rather than angular. Distance becomes a trivial hypotenuse calculation. Axis-aligned rectangles are intuitive to work with. Elementary right-angled trigonometry can be used to calculate new points, e.g. midway, offset, etc. This is all provided the extents of the region is not massive, e.g. of continental scale – If your dataset is within say a degree square (that’s still large) you’ll be fine with this approach.

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

Sidebar

Related Questions

I'm looking for [free] server software to store hierarchal data efficiently. My key challenge
I'm looking for a free control/component/library something like a rich text box for editing
I am looking for a free .NET OCR library that will be able to
I've been looking for a free library/source code to format SQL queries, preferably in
I'm looking for a free Serial Port library that works with Eclipse Helios, Windows
I'm looking for a free face recognition library for a university project. I'm not
Im looking for a free strong physics library for iphone programming (Objective C). im
Where can I get some decent looking free ASP.Net or CSS themes?
I am looking for free/opensource php form email script/class. The main requirement is that
Looking for a free jQuery TreeView control supporting all the below mentioned features. Need

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.