You can download the complete example for both bash and Windows cmd.exe. We will use cmd.exe syntax here.
Unix: If you use gpsdings frequently you can define an alias
for gpsdings in your .bashrc
or equivalent configuration file
alias gpsdings='java -jar /absolute/path/to/gpsdings.jar'
This will allow you to invoke gpsdings from any working directory by simply
typing gpsdings
.
java -jar gpsdings.jar gpxovl guffertrunde-planned.ovland obtain the file guffertrunde-planned.gpx.
java -jar gpsdings.jar elevations ^ --todir . ^ --Trkpt ^ --Wpt ^ guffertrunde-planned.gpxand create an altitude profile
java -jar gpsdings.jar trackanalyzer ^ --plot "DistanceTravelled|Elevation|graph0.svg|Guffertrunde (planned)" ^ guffertrunde-planned.gpx
java -jar gpsdings.jar gpxkml ^ --kmz ^ --name Guffertrunde ^ guffertrunde.gpxThe result is guffertrunde.kmz
photos-original
.photos
that have the geo-coordinates of
the locations where they were taken in their XMP file headers
(--XMP
). The geo-coordinates are also written
over the lower part of the images (--stamp
).
Additionally, a semi-transparent track view, in which the place
the photograph was taken is marked by a red dot, is added to the upper
right corner of each image (--Track
).
java -jar gpsdings.jar exifloc ^ --utc-offset 7200 ^ --copy-to photos ^ --gpx guffertrunde.gpx ^ --XMP ^ --stamp @mypattern.html S 0.8 ^ --Track NE 0.25 #7fffffff #00ffffff RED ^ photos-original\*.jpg
--read-gps-tag --xmp
we do not need to specify
a UTC offset and a GPX file to read from.
java -jar gpsdings.jar exifloc ^ --read-gps-tag --xmp ^ --Exif ^ photos\*.jpg
java -jar gpsdings.jar exifloc ^ --read-gps-tag ^ --kmz guffertrunde-photos.kmz --image-size 200 200 ^ --javascript guffert-photos.js ^ --GPX guffertrunde-photos.gpx ^ photos\*.jpgThe KMZ result is guffertrunde-photos.kmz. It contains copies of our digital camera pictures that are scaled down so that they fit into a 200 px × 200 px square.
java -jar gpsdings.jar trackanalyzer ^ --kml "Elevation|elevation.kml" ^ guffertrunde.gpxWe will include this kml file in the visualization using the
openlayers --kml
option.java -jar gpsdings.jar shrink ^ --numpoints 100 ^ guffertrunde.gpx ^ > guffertrunde-n100.gpx
--photojs
option we include the JavaScript output
of exifloc, above.
java -jar gpsdings.jar openlayers ^ --javascript omap.js ^ --Javascript-URL omap.js ^ --Photo-URL photos/ ^ --base-layers "OSMMapnik OSMCyclemap" ^ --xhtml omap.html ^ --kml-URLs elevation.kml ^ --photojs guffert-photos.js ^ guffertrunde-n100.gpx
java -jar gpsdings.jar trackanalyzer ^ --plot "TimeTravelled|DistanceTravelled|graph1.svg|Guffertrunde" ^ guffertrunde.gpx java -jar gpsdings.jar trackanalyzer ^ --plot "DistanceTravelled|Elevation|graph2.svg|Guffertrunde" ^ guffertrunde.gpx java -jar gpsdings.jar trackanalyzer ^ --smoothing=5 ^ --plot "TimeTravelled|VerticalSpeed|graph3.svg|Guffertrunde" ^ guffertrunde.gpxThe result is graph1.svg, graph2.svg, graph3.svg.