akwiatkowski / gpx2exif Goto Github PK
View Code? Open in Web Editor NEWA script to geotag your photos using GPX files
License: GNU Lesser General Public License v3.0
A script to geotag your photos using GPX files
License: GNU Lesser General Public License v3.0
Expects to find spec/fixtures/sample.gpx, but no such GPX file exists in repo.
This is not working:
-g P6-s6-bus7345.gpx -o map2.png
/opt/boxen/rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/gpx2exif-0.3.6/lib/geotagger/track_importer.rb:147:in `make_label': undefined method `[]' for nil:NilClass (NoMethodError)
from /opt/boxen/rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/gpx2exif-0.3.6/lib/geotagger/track_importer.rb:157:in `auto_marker'
from /opt/boxen/rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/gpx2exif-0.3.6/bin/geotag:158:in `<top (required)>'
from /opt/boxen/rbenv/versions/2.0.0/bin/geotag:23:in `load'
from /opt/boxen/rbenv/versions/2.0.0/bin/geotag:23:in `<main>'
<?xml version="1.0" encoding="UTF-8"?>
<gpx
version="1.1"
creator="Created by Google My Tracks on Android"
xmlns="http://www.topografix.com/GPX/1/1"
xmlns:topografix="http://www.topografix.com/GPX/Private/TopoGrafix/0/1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd http://www.topografix.com/GPX/Private/TopoGrafix/0/1 http://www.topografix.com/GPX/Private/TopoGrafix/0/1/topografix.xsd">
<metadata>
<name><![CDATA[P6-s6-bus7345]]></name>
<desc><![CDATA[]]></desc>
</metadata>
<trk>
<name><![CDATA[P6-s6-bus7345]]></name>
<desc><![CDATA[]]></desc>
<type><![CDATA[driving]]></type>
<extensions><topografix:color>c0c0c0</topografix:color></extensions>
<trkseg>
<trkpt lat="55.608155" lon="13.002968">
<time>2014-05-11T06:25:51.766Z</time>
</trkpt>
<trkpt lat="55.608147" lon="13.003067">
<time>2014-05-11T06:25:56.076Z</time>
</trkpt>
<trkpt lat="55.608843" lon="13.001666">
<ele>40</ele>
<time>2014-05-11T06:25:59.706Z</time>
</trkpt>
<trkpt lat="55.608843" lon="13.001666">
<ele>40</ele>
<time>2014-05-11T06:26:00.524Z</time>
</trkpt>
<trkpt lat="55.608766" lon="13.002067">
<ele>93</ele>
<time>2014-05-11T06:26:00.706Z</time>
</trkpt>
<trkpt lat="55.608789" lon="13.002109">
<ele>101</ele>
<time>2014-05-11T06:26:01.718Z</time>
</trkpt>
</trkseg>
</trk>
</gpx>
Done with https://play.google.com/store/apps/details?id=com.google.android.maps.mytracks
exiftool
is great but excruciatingly slow at writing EXIF tags. exiv2
is much faster but there is no mature Ruby wrapper for it, so this is non-trivial. I have spent a few hours trying to make it work but my extremely limited Ruby skills got in the way.
calling geotag
with no args:
/Users/martijnv/.rvm/gems/ruby-2.1.2/gems/geokit-1.8.5/lib/geokit/geocoders.rb:44:in `<module:Geocoders>': uninitialized constant Geokit::Geocoders::OpenSSL (NameError)
This is on OSX 10.9 with homebrew
and rvm
, using ruby 2.1.2.
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.