Skip to content

jakecoppinger/gpx-remove-nearby-points

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GPX Remove Nearby Points

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])

Why?

For example: Removing points nearby to your home when uploading a trace to OpenStreetMap.

Usage

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

Author

Jake Coppinger
<jake@jakecoppinger.com>
(https://jakecoppinger.com)

About

Remove points in a GPX (GPS) trace within a specified distance to a point

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published