X-Git-Url: https://git.street.me.uk/andy/viking.git/blobdiff_plain/863b76cc5c7d4092637d5979d30dc39433298e9d..9a5ef106cb3ac9515bb6a4304872999c1335e997:/tools/images2waypoints.pl diff --git a/tools/images2waypoints.pl b/tools/images2waypoints.pl index 40834434..d5fa8320 100755 --- a/tools/images2waypoints.pl +++ b/tools/images2waypoints.pl @@ -20,6 +20,8 @@ =head1 Overview A script to auto generate basic Viking .vik files for directories containing images. +Note that from Viking 1.3 onwards it can load geotagged images directly, + although it does not have recursive directory capabilities. Simply recursively search down the directory tree (from the current location) for suitable image files [normally jpg|JPG (probably photographs)] and then extract any location data from the EXIF part. @@ -27,6 +29,7 @@ Simply recursively search down the directory tree (from the current location) fo For each directory this info is output to a file into either Viking (default) or GPX data file formats. Output filename is waypoints.vik (or waypoints.gpx in GPX mode) unless the -o option is specified. + Options: -g put into outputting GPX file mode -o - specify output base filename (overriding 'waypoints') @@ -35,11 +38,6 @@ Options: Required programs: . exiftool - getting location data from EXIF (Debian package libimage-exiftool-perl) -Recommended programs: -. viking - Obviously when viking mode used to view the output [can view gpx as well] -. gpscorrelate[-gui] - Correlates digital photos with GPS data filling EXIF fields - i.e. something to put EXIF info into files to begin with - Various improvements can be: . Command line options to control things eg: .which symbol to use for each point @@ -341,7 +339,7 @@ sub Process_File { # Default filename my $out_file_start = "waypoints"; -if (defined @ARGV) { +if (@ARGV) { for (my $arg=0; $arg < $#ARGV+1; $arg++) { if ("$ARGV[$arg]" eq "-o") { # Set filename to next arg