Sure, you can edit a gpx file, but a text editor doesn’t help with tasks like

  • simplify (with Douglas-Peucker)
  • split into parts with x km length
  • remove points with speed below 5 km/h