Get gpx write working