question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Compute distances in geodetic coordinates

See original GitHub issue

Description of the desired feature

Currently Harmonica has functions to compute distances between points defined in Cartesian coordinates or in spherical geocentric coordinates. Would be nice if we add a function to compute Euclidean distances between points whose coordinates are defined in geodetic (ellipsoidal) coordinates (don’t confuse it with great circle distances). Worth noting that the geodetic coordinates depend on the reference ellipsoid, so we would need to pass a boule.Ellipsoid to the new function along with the coordinates of the two points. This may allow to compute gravitational and magnetic effects of point masses directly on geodetic coordinates without the need to convert them into spherical. Also it could enable us to build a separate equivalent layer class, a EQLHarmonicGeodetic for example, that interpolates harmonic data given in geodetic coordinates.

Some articles that may give insights of how to compute such distances are:

Are you willing to help implement and maintain this feature? Yes

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
birocolescommented, Mar 19, 2020

Ok @santisoler , I can tackle this. I will include more functions for converting coordinates in coordinates.py and then implement the distance in geodetic coordinates. I will create a first PR for this coordinate conversions.

1reaction
birocolescommented, Mar 18, 2020

I can help

Read more comments on GitHub >

github_iconTop Results From Across the Web

Different ways for calculating distance between two geodetic ...
2) I have tried to calculate the distance transformating the geodetic coordinates (latitude, longitude) in cartesian coordinates (x, y).
Read more >
Calculate distance and bearing between two Latitude ...
Calculate distance, bearing and more between Latitude/Longitude points ... Alternatively, the polar coordinate flat-earth formula can be used: using the ...
Read more >
Latitude/Longitude Distance Calculator
Enter latitude and longitude of two points, select the desired units: nautical miles (n mi), statute miles (sm), or kilometers (km) and click...
Read more >
Geographical distance - Wikipedia
The formulae in this article calculate distances between points which are defined by geographical coordinates in terms of latitude and longitude.
Read more >
How to Calculate Distance Between Two Coordinates in Excel ...
Distance Formula for Geodetic Coordinate System · lat1 = Latitude of location 1 · lat2 = Latitude of location 2 · long1 =...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found