-
Notifications
You must be signed in to change notification settings - Fork 50
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
is there a way to it gpx to parse the garmin extension? #22
Comments
Hi @rful011 - we don't currently support any extended schemas. Do you have a link to the Garmin schema that I can take a look at? |
Hi Andrew
I have spent several hours now fiddling with nokogiri and the gpx code and now understand pretty well how it works. It turns out that gpx is extracting the data out of the extension but not the tags.
Just using nokogiri I got
puts wp_element.at('extensions’) gives
<extensions>
<wptx1:WaypointExtension>
<wptx1:Samples>2</wptx1:Samples>
</wptx1:WaypointExtension>
</extensions>
while gpx returns the value 2 for the essentially the same code (evaluation in a scalar context?).
Anyway I was wondering if the easiest way of dealing with extension would be to provide a callout and pass it the extension element and return the value as the value. I.e allow the user to deal the format of the extension.
Russell
… On 3/06/2017, at 12:18 PM, Andrew Hao ***@***.***> wrote:
Hi @rful011 <https://github.com/rful011> - we don't currently support any extended schemas. Do you have a link to the Garmin schema that I can take a look at?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#22 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAn9jwGlE47zTmf_2ZecgBiOpGGR--ZKks5sAKZJgaJpZM4Nt0XT>.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi
I need to parse some gpx files from a Garmin Etrex 30 which have some data the extension that I need. The schemas are available.
I have had a brief look at the code but I can't figure out any way of getting data out.
The text was updated successfully, but these errors were encountered: