pyproj icon indicating copy to clipboard operation
pyproj copied to clipboard

Functions of `loxodrome` or `rhumb line` is needed

Open AkexStar opened this issue 2 years ago • 6 comments

I have did a lot of surveys, but found that there is few libs about rhumb_inverse and rhumb_direct. I noticed that Geographiclib has a solution for rhumb, but does not support python. pyproj has geodesic.inv_intermediate and geodesic.fwd_intermediate for great-circle(geodesic), but lacks of functions to calculate rhumb line.

Rhumb Line is very important for air/sea track calculation. I hope that there will be funtions just similar to geodesic.fwd_intermediate to compute rhumb line.

I will be very grateful if any developer could reply me.

AkexStar avatar Aug 16 '23 16:08 AkexStar

The geodesic functions use c functions from PROJ which are imported from the GeographicLib library you reference (https://proj.org/en/9.2/geodesic.html). To get the logic in pyproj, the logic will need to be added to PROJ first.

See: https://github.com/OSGeo/PROJ/

snowman2 avatar Aug 22 '23 20:08 snowman2

@snowman2 Thank you! I'll go to PROJ and raise an Issue

AkexStar avatar Aug 23 '23 14:08 AkexStar

Related:

  • https://github.com/jrversteegh/geofun
  • https://github.com/OSGeo/PROJ/issues/3855

snowman2 avatar Aug 31 '23 14:08 snowman2

Some people showed in the ticket in PROJ (https://github.com/OSGeo/PROJ/issues/3855) how to easily compute a loxodrome using the Mercator projection. Should this issue be closed?

jjimenezshaw avatar Oct 25 '23 16:10 jjimenezshaw

Do you think that their suggestion is worth documenting?

snowman2 avatar Oct 26 '23 21:10 snowman2

https://github.com/OSGeo/PROJ/issues/3855#issuecomment-1698098657 I don't know if it is worth it, maybe.

jjimenezshaw avatar Oct 27 '23 08:10 jjimenezshaw