dittaeva / average-tracks Goto Github PK
View Code? Open in Web Editor NEWR script to make an average GPS / georeferenced track by combining/merging two or more into a “line of best fit”
Home Page: http://wiki.openstreetmap.org/wiki/average_tracks
R script to make an average GPS / georeferenced track by combining/merging two or more into a “line of best fit”
Home Page: http://wiki.openstreetmap.org/wiki/average_tracks
For most newbies it is easier to relate to installing a package. Package for ubuntu should be first priority.
Using littler?: http://dirk.eddelbuettel.com/code/littler.html
or other solutions:
http://stackoverflow.com/questions/750786/whats-the-best-way-to-use-r-scripts-on-the-command-line
Sometimes trails will take slightly different turns around big stones, houses, or other obstructions. If you average tracks that have taken these different turns, you might end up with a track that goes straight through or over the obstruction, making it of less quality than the original.
A function to stay within the error margin of the gps track could address this issue.
Average elevation data if at all feasable
Say for example you have tracks from a mountain hike; two tracks have point all the way from the beginning, including the tracks going to the top of the mountain, one tracks (the one with the most points) only covers the part on the mountain.
The resulting average track should then be an average of the two scripts for the beginning, and all three for the last part.
I follow instructions in http://wiki.openstreetmap.org/wiki/Average_tracks
I run R on Win 7 64 bits using the GUI interface.
File->Source R Code and I specify the .R file
I get following error
source("D:\GPS Logs\average-tracks.R")
Error incolnames<-
(*tmp*
, value = c("lon", "lat", "routeID")) :
'names' attribute [3] must be the same length as the vector [1]
I do not specify the "--no-save" option but that should not be the problem.
Thanks
Integrate with josm
See article:
http://users.erols.com/dlwilson/gpswtavg.htm
GPX tracks often contain elevation data from the GPS device. A function to average the elevation data would make the script more complete.
Currently the R script will use the track with the most points as its "authoritative" track.
If the user knows the quality of the tracks he should be able to specify which track should be the "authoritative"/"reference" track.
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.