GPSBabel / gpsbabel

GPSBabel: convert, manipulate, and transfer data from GPS programs or GPS receivers. Open Source and supported on MacOS, Windows, Linux, and more. Pointy clicky GUI or a command line version...
https://www.gpsbabel.org
GNU General Public License v2.0
477 stars 127 forks source link

unify access to ellipsoid parameters #1312

Closed tsteven4 closed 2 months ago

tsteven4 commented 2 months ago

This eliminates some magic numbers which recently were discovered to contain a typo (#1310). It also eliminates some assumptions of which ellipse index applied to some specific ellipses (GRS80, Bessel 1841). It increases readability. It corrects a variable name which used b (standard for the semi-minor axis) instead of f (standard for flattening). And it does this all at compile time.