Ticket #34 (new enhancement)

Opened 4 years ago

Last modified 6 months ago

Provide functions used in geod in the library instead

Reported by: jluebbe Owned by: warmerdam
Priority: major Milestone:
Component: default Version: unspecified
Keywords: Cc:

Description

It would be nice to be able to use the functions for geodesic calculations (implemented in geod) by linking against libproj.

The python proj bindings ( http://code.google.com/p/pyproj) currently includes a copy of the complete proj sources. I've modified it to link agains libproj, but it still needs emess.c, emess.h, geod.c, geodesic.h, geod_for.c, geod_inv.c and geod_set.c.

Change History

Changed 6 months ago by karney

The patch supplied with ticket #197 makes this feasible. The API is given at the beginning of geodesic.h. It's possible that a wrapper needs to be provided to expose an interface more in the spirit of proj.4, e.g.,

  • angles in radians
  • how the ellipsoid is specified
  • prefix function names with pj_
Note: See TracTickets for help on using tickets.