-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot read amazfit gpx track #170
Comments
The version attribute determines the GPX version, which is either "1.0" or "1.1", according to the GPX-standard. The amazfit watch is creating an invalid GPX file. You have to fix the version string to "1.1". |
In this code
can't we make it return V11 by default ? |
Since the given GPX file is invalid, this is not my preferred fix. But I can imagine, that such files are readable with lenient mode. final var gpx = GPX.Reader
.of(Mode.LENIENT)
.read("invalid.gpx"); |
Merged into r3.1.0. |
Thanks a million for the fix. I had to write my own parser with xstream. |
Hi,
I cannot parse a gpx file imported from my amazfit watch.
java.io.InvalidObjectException: Invalid GPX: Invalid value for 'version': Unknown version string: '7.7.5-play'.
here is an exemple of the gpx file :
The text was updated successfully, but these errors were encountered: