georust / gpx

Rust read/write support for GPS Exchange Format (GPX)
https://crates.io/crates/gpx
MIT License
98 stars 44 forks source link

Failed to parse GPX1.0 file #105

Open CaviarChen opened 2 months ago

CaviarChen commented 2 months ago

Getting: invalid child element course in waypoint thread gpx. According to the spec[1], course is valid but we do not handle it in the lib [2].

The straight forward fix could be just supporting this tag, but what about just killing InvalidChildElement? Or minting a strict mode and only consider this as an error there?

[1] https://www.topografix.com/gpx_manual.asp [2] https://github.com/georust/gpx/blob/ef3ab70e90aefc9d7b6428ae42082bf69432f720/src/parser/waypoint.rs#L67-L123