Download

GPSMash 1.4
Aug 7, 2013

Example: Crop GPS track (interactive)

The following example demonstrates the use of interactive mode to crop GPS tracklogs to a specific latitude/longitude area:

C:\gpsmash> GPSMash -loadgpx C:\gpx -interactive

Loading from C:\gpx\20100220.gpx...

Loading from C:\gpx\20100221.gpx...

Loaded 46 track(s) consisting of 8321 point(s).

Entering interactive mode.

bounds

Latitude 37.25134 38.39394 39.53654

Longitude -122.13790 -120.98160 -119.82540

Elevation -10.92600 1102.91000 2216.74500

deselect all

8321 new point(s) deselected.

select lat 37.5 38.5

1433 new point(s) selected.

cleanup

Cleaned up data

deselect all

1433 new point(s) deselected.

select lon -122.0 -121.0

1055 new point(s) selected.

cleanup

Cleaned up data

outgpx cropped.gpx

Saving to cropped.gpx...

end

C:\gpsmash> _

 

The data is loaded initially using the -loadgpx command. Then, GPSMash enters interactive mode (-interactive).

The bounds command recalculates and displays the bounds of the loaded data.

The deselect all / select lat 37.5 38.5 sequence sets the selection only to points in the latitude range of 37.5 to 38.5 degrees.

The cleanup command removes the unselected points from the data buffer.

The deselect all / select lon -122.0 -121.0 sequence sets the selection only to points in the longitude range of -122.0 to -121.0 degrees.

The second cleanup command removes the unselected points from the data buffer.

Finally, the data is saved in GPX format to a file named cropped.gpx in the current folder (outgpx cropped.gpx).