-
-
Notifications
You must be signed in to change notification settings - Fork 57
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
System for easier use of extensions dependent on schema #58
Comments
Hi @edorphy, Technically, it is possible to read and write extensions data using Looking at the export though, I am surprised to see that Apple appears to be generating a rather non standard GPX file, considering that there is no extension schema provided in the gpx tag. |
I did try using the extensions and extension elements. I was able to get it close to Apple, but it added the parent tag, as expected from the library. When I was reading the gpx spec (web ref from topografix), I couldn't discern if the extensions type could be any xml nodes, or if they needed to be nested within a parent schema. Is this what you were referring to as apple being non-standard? Thanks for the reply! |
Did some codes, and found GPXExtensions rather defective at this point - i just didn't notice it. Using Will attempt to fix in a couple of days hopefully. By the way, the reason why I said that Apple's approach seems non-standard is because of this:
Normally, a schema will be appended to the gpx tag. The extensions in the whole file should follow what is listed in the schema, but Apple's approach in your example did not show that, which, meant that they may change something near future, without telling the user/app developer of what it should be. |
Apple Health exports any workout routes as GPX as of iOS 13.1. It would be nice if this library supported generating files with the same extension fields on tracepoints. Specifically the other properties on CLLocation objects, speed, course, hAcc, vAcc.
Sample generated from watch/iPhone simulator and then exported.
The text was updated successfully, but these errors were encountered: