This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

How to clip / cut / filter / extract bounding box / radius around given point of gpx file WITHOUT altering the gpx file content otherwise?

0

I want to extract and save an area around a given lat/lon of a gpx file and remove all the remaining points.

I tried

gpsbabel -i gpx -f favorites.gpx -x radius,distance=500K,lat=64.9830,lon=-18.1074 -o gpx -F output.gpx

When I use gpsbabel for that, gpsbabel rewrites the whole file, changing the format, inventing new tags etc. Is there any tool for just extracting, leaving the file untouched otherwise?

asked 14 Aug '23, 19:09

erik's gravatar image

erik
558152234
accept rate: 9%


One Answer:

1

Hi, You can GPSPrune does a lot of gpx manipulation, it might be able to suit your requirement. I use it to cut unwanted sections from gpx tracks. It's here:- https://activityworkshop.net/software/gpsprune/index.html

answered 15 Aug '23, 07:26

BCNorwich's gravatar image

BCNorwich
6.3k54489
accept rate: 20%

Source code available on GitHub .