Rewrite gpxWriter cass