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
473 stars 126 forks source link

correct simplify filter with maximum allowable error option and the metric being overall route length or relative error #1316

Closed tsteven4 closed 1 month ago

tsteven4 commented 1 month ago

Both these combinations suffered from passing locations in degrees to gcdist instead of the required radians.

For the error option using the overall route length:

  error(m) total length(km) delta length(m) points
garmin-edge-800-output.gpx   25.169843   1286
ref 1000 25.148384 -21.459 333
dut 20.2 25.149752 -20.091 334
dut 20.34 25.149584 -20.259 333
dut 20.5 25.149415 -20.428 332

For the error option using the relative error based on HDOP: