Removes all GPX (GPS) track points that match the given coordinate to DEC_PLACES places.
eg. a trackpoint -33.88260 151.20653 would be removed if -33.88212 151.20699 is passed to the program and DEC_PLACES is 3 (the first 3 decimals places match)
1st dec place: worth up to 11.1km
2st: 1.1km
3rd: 110m
4th: 11m
5th: 1.1m
6th: 0.11m
7th: 11mm
8th: 1.1mm
(from [https://gis.stackexchange.com/questions/8650/measuring-accuracy-of-latitude-and-longitude/8674#8674])
For example: Removing points nearby to your home when uploading a trace to OpenStreetMap.
Remove all points in a GPX GPS trace that match the given coordinate to 3 decimal places
cat INPUT.gpx | ./gpx-remove-nearby-points.sh LATITUDE LONGITUDE DEC_PLACES
cat input.gpx | ./gpx-remove-nearby-points.sh -33.8834,151.2065 3 > output.gpx
Jake Coppinger
<jake@jakecoppinger.com>
(https://jakecoppinger.com)