I am attempting to generate some .gpx files (tracks) from some simple line features (with z values). The process runs successfully. The output files, however, contain three copies of each trackpoint. This is causing a problem in the application that uses the .gpx files.