Skip to content
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

adding to the namespace for output files #25

Open
rful011 opened this issue Aug 16, 2017 · 2 comments
Open

adding to the namespace for output files #25

rful011 opened this issue Aug 16, 2017 · 2 comments

Comments

@rful011
Copy link

rful011 commented Aug 16, 2017

HI

I am still fiddling with getting data out of the Garmin extension files and I have come across an issue where some other software is refusing to read GPX files with the garmin extension unless the proper xmlns headers are present so I have been cutting and pasting them in with an editor.

I have been looking at the gpx_file code and it looks like I should be able to pass these in as an option when creating the output object but I can't figure out exactly how.

Garmin headers define the following additional ns: xmlns:gpxx, xmlns:wptx1, xmlns:gpxtpx along with a long list of urls for the locations.

Any hints appreciated

@rful011
Copy link
Author

rful011 commented Aug 16, 2017

After a bit more pondering I think I need to do something like

gpx_out[f] = GPX::GPXFile.new( :namespace_defs => '...' )

where '...' is the list of additional stuff I want. What I can't figure out is what format the data should be. It is picked apart in attributes_and_nsdefs_as_gpx_attributes but that seems to assume it is parsed xml?

@andrewhao
Copy link
Collaborator

Hi @rful011 - tell me a little more about which headers you need? If we understand the problem you're up against, that might help us come to a better solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants