dougfales / gpx Goto Github PK
View Code? Open in Web Editor NEWRuby GPX Library
Home Page: http://dougfales.github.com/gpx/
License: MIT License
Ruby GPX Library
Home Page: http://dougfales.github.com/gpx/
License: MIT License
Tried to use this gem for it's GPX::GeoJSON
functionality, but found out that currently released version 1.0
does not have #38 in it. Would it be possible to release new version so that the README.md
on master
matches released version? Or just in general to prevent confusion.
Generate error "TypeError: The first argument must be a document or node " on Ruby Enterprise Edition.
TypeError: The first argument must be a document or node.
/opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/libxml-ruby-1.1.4/lib/libxml/node.rb:57:in register_namespaces_from_node' /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/libxml-ruby-1.1.4/lib/libxml/node.rb:57:in
context'
/opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/libxml-ruby-1.1.4/lib/libxml/node.rb:71:in find' gpx (0.6) [v] lib/gpx/point.rb:42:in
initialize'
gpx (0.6) [v] lib/gpx/trackpoint.rb:31:in initialize' gpx (0.6) [v] lib/gpx/segment.rb:51:in
new'
gpx (0.6) [v] lib/gpx/segment.rb:51:in initialize' gpx (0.6) [v] lib/gpx/segment.rb:50:in
each'
gpx (0.6) [v] lib/gpx/segment.rb:50:in initialize' gpx (0.6) [v] lib/gpx/track.rb:46:in
new'
gpx (0.6) [v] lib/gpx/track.rb:46:in initialize' gpx (0.6) [v] lib/gpx/track.rb:45:in
each'
gpx (0.6) [v] lib/gpx/track.rb:45:in initialize' gpx (0.6) [v] lib/gpx/gpx_file.rb:83:in
new'
gpx (0.6) [v] lib/gpx/gpx_file.rb:83:in initialize' gpx (0.6) [v] lib/gpx/gpx_file.rb:82:in
each'
gpx (0.6) [v] lib/gpx/gpx_file.rb:82:in `initialize'
The problem with parsing file from official site http://www.topografix.com/gpx_sample_files.asp
gpx = GPX::GPXFile.new(:gpx_file => "#{RAILS_ROOT}/test/fixtures/fells_loop.gpx")
/opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/libxml-ruby-1.1.4/lib/libxml/node.rb:57: [BUG] Segmentation fault
ruby 1.8.7 (2009-12-24 patchlevel 248) [i686-darwin10.2.0], MBARI 0x6770, Ruby Enterprise Edition 2010.01
Abort trap
Hello,
I noticed that when a track contains several segments with a pause between the segment, then the duration is including the pause.
I would like to change that, by removing the pause in the calculation of duration (ultimate goal is to calculate average speed without pause)
I am just having some questions:
I am willing to perform this modification. But I also want to prevent proposing a modification that would not be accepted ;-)
Let me know if anything is not clear.
This line checks if the input is of the the type File. It would be helpful if it also accepted Tempfile and StringIO so you could give it the result of open-uri to load gpx files from http.
When GPX file contains no time information, the earliest_point and latest_point of a segment are set to nil.
I think that we should consider that the points are at least timely ordered in the GPX file (that is what I see all the time) and set the earliest_point and latest_point to the first and last point of the segment.
The TrackPoint#pythagorean_distance_from
method returns units in radians, although the comment line above it indicates it returns units in km.
Even if the result is multiplied by RADIUS
to return km, the distance is highly inaccurate at most latitudes, because the method assumes a degree of longitude is equal to ~111 km regardless of latitude. For example, at 37 degrees latitude (the latitude of the points in the test file), calculations between points with significant difference in longitude are off by about 26%.
I would suggest the TrackPoint#pythagorean_distance_from
method be deleted to avoid confusion. This would require removal of Segment#pythagorean_distance
as well. Comments note that this method is not currently in use.
Not really an issue, more like a question/help/feature request maybe.
I would like to convert a GPX file to geoJson format and then display it using MapBox.
Maybe it's just my limited knowledge, but I don't find any proper way of doing it, not with this gem or any other similar solutions.
Furthermore, would it be possible to extract, calculate elevation gains and drops from the data in GPX.
Generally, I am using Strava gpx from either activity or routes, and I would like to draw it on a MapBox enabled map plus have some additional information with it.
Sorry for maybe very simple question.
Thx
It was tagged at the wrong point. I wanted v0.8 to be the merge point of the two forks, but I neglected to tag it correctly.
New merge point will be v0.8.1
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.
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
Would be useful if this library let you get the maximum and minimum values for longitude and latitude. Use case being you would be able to draw a box on a map that fits the whole gpx file inside of it.
I'd love to work on it under an OSS license. Thoughts?
Hey @dougfales - pulling a long thread here. I'm not really able to devote much time to gem maintenance these days, and would like to find another contributor to move this gem forward. Would you be open to doing so? Folks like @niborg have volunteered in the past (not to put you on the spot!) but might be good to explicitly put out a call for a maintainer in the README, if you are open. WDYT?
FYI: I reinstalled the gpx gem and it pulled a new version of nokogiri (1.8.0) which fails to install (dies trying to compile libxml2 with and undefined macro). Looking at the nokogiri pages I see this is a known issue that has been around some time.
I note that gpx now requires nokogiri 1.7 -- I tried installing that but it has the same problems. 1.6.7.2 installed fine.
Mac os 10.12.5
Hello,
After merging PR #11, would it be possible to bump version to 0.9 and publish it to rubygems ?
Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.