forked from freefoote/gpscorrelate
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support --direction and --heading (sort of) with --latlong
--direction sets the camera direction directly, while --heading will only write a heading of 0 degrees.
- Loading branch information
Showing
8 changed files
with
124 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
TITLE='Geotag a file from a specified location with direction' | ||
PRECOMMAND='cat "$STAGINGDIR/point1-1.jpg" >"$LOGDIR/test.jpg"' | ||
# Run in C locale to correctly parse these decimal numbers | ||
COMMAND='env LC_ALL=C $PROGRAM -z+1 -l 12.34567,-123.456,78.9 --direction 321 "$LOGDIR/test.jpg" > "$OUTFILE" 2>&1 && exiv2 -pv pr "$LOGDIR/test.jpg" >> "$OUTFILE" 2>&1' | ||
POSTCOMMAND='rm -f "$LOGDIR/test.jpg"' | ||
RESULTCODE=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
Legend: . = Ok, / = Interpolated, < = Rounded, - = No match, ^ = Too far | ||
w = Write Fail, ? = No EXIF date, ! = GPS already present | ||
|
||
Correlate: / | ||
|
||
Completed correlation process. | ||
Matched: 1 (0 Exact, 1 Interpolated, 0 Rounded). | ||
Failed: 0 (0 Not matched, 0 Write failure, 0 Too Far, | ||
0 No Date, 0 GPS Already Present.) | ||
0x011a Image XResolution Rational 1 72/1 | ||
0x011b Image YResolution Rational 1 72/1 | ||
0x0128 Image ResolutionUnit Short 1 2 | ||
0x0132 Image DateTime Ascii 20 2012:11:22 12:34:56 | ||
0x0213 Image YCbCrPositioning Short 1 1 | ||
0x8769 Image ExifTag Long 1 134 | ||
0x9000 Photo ExifVersion Undefined 4 48 50 49 48 | ||
0x9003 Photo DateTimeOriginal Ascii 20 2012:11:22 12:34:56 | ||
0x9004 Photo DateTimeDigitized Ascii 20 2012:11:22 12:34:56 | ||
0x9101 Photo ComponentsConfiguration Undefined 4 1 2 3 0 | ||
0xa000 Photo FlashpixVersion Undefined 4 48 49 48 48 | ||
0xa001 Photo ColorSpace Short 1 65535 | ||
0xa002 Photo PixelXDimension Long 1 64 | ||
0xa003 Photo PixelYDimension Long 1 64 | ||
0x8825 Image GPSTag Long 1 276 | ||
0x0000 GPSInfo GPSVersionID Byte 4 2 2 0 0 | ||
0x0001 GPSInfo GPSLatitudeRef Ascii 2 N | ||
0x0002 GPSInfo GPSLatitude Rational 3 12/1 20/1 4441/100 | ||
0x0003 GPSInfo GPSLongitudeRef Ascii 2 W | ||
0x0004 GPSInfo GPSLongitude Rational 3 123/1 27/1 22/1 | ||
0x0005 GPSInfo GPSAltitudeRef Byte 1 0 | ||
0x0006 GPSInfo GPSAltitude Rational 1 789/10 | ||
0x0007 GPSInfo GPSTimeStamp Rational 3 11/1 34/1 56/1 | ||
0x0010 GPSInfo GPSImgDirectionRef Ascii 2 T | ||
0x0011 GPSInfo GPSImgDirection Rational 1 321/1 | ||
0x0012 GPSInfo GPSMapDatum Ascii 7 WGS-84 | ||
0x001d GPSInfo GPSDateStamp Ascii 11 2012:11:22 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
TITLE='Geotag a file from a specified location with direction and heading' | ||
PRECOMMAND='cat "$STAGINGDIR/point1-1.jpg" >"$LOGDIR/test.jpg"' | ||
# Run in C locale to correctly parse these decimal numbers | ||
COMMAND='env LC_ALL=C $PROGRAM -z0 -l "12.34567,-123.456 78.9" --direction 12 --heading "$LOGDIR/test.jpg" > "$OUTFILE" 2>&1 && exiv2 -pv pr "$LOGDIR/test.jpg" >> "$OUTFILE" 2>&1' | ||
POSTCOMMAND='rm -f "$LOGDIR/test.jpg"' | ||
RESULTCODE=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
Legend: . = Ok, / = Interpolated, < = Rounded, - = No match, ^ = Too far | ||
w = Write Fail, ? = No EXIF date, ! = GPS already present | ||
|
||
Correlate: / | ||
|
||
Completed correlation process. | ||
Matched: 1 (0 Exact, 1 Interpolated, 0 Rounded). | ||
Failed: 0 (0 Not matched, 0 Write failure, 0 Too Far, | ||
0 No Date, 0 GPS Already Present.) | ||
0x011a Image XResolution Rational 1 72/1 | ||
0x011b Image YResolution Rational 1 72/1 | ||
0x0128 Image ResolutionUnit Short 1 2 | ||
0x0132 Image DateTime Ascii 20 2012:11:22 12:34:56 | ||
0x0213 Image YCbCrPositioning Short 1 1 | ||
0x8769 Image ExifTag Long 1 134 | ||
0x9000 Photo ExifVersion Undefined 4 48 50 49 48 | ||
0x9003 Photo DateTimeOriginal Ascii 20 2012:11:22 12:34:56 | ||
0x9004 Photo DateTimeDigitized Ascii 20 2012:11:22 12:34:56 | ||
0x9101 Photo ComponentsConfiguration Undefined 4 1 2 3 0 | ||
0xa000 Photo FlashpixVersion Undefined 4 48 49 48 48 | ||
0xa001 Photo ColorSpace Short 1 65535 | ||
0xa002 Photo PixelXDimension Long 1 64 | ||
0xa003 Photo PixelYDimension Long 1 64 | ||
0x8825 Image GPSTag Long 1 276 | ||
0x0000 GPSInfo GPSVersionID Byte 4 2 2 0 0 | ||
0x0001 GPSInfo GPSLatitudeRef Ascii 2 N | ||
0x0002 GPSInfo GPSLatitude Rational 3 12/1 20/1 4441/100 | ||
0x0003 GPSInfo GPSLongitudeRef Ascii 2 W | ||
0x0004 GPSInfo GPSLongitude Rational 3 123/1 27/1 22/1 | ||
0x0005 GPSInfo GPSAltitudeRef Byte 1 0 | ||
0x0006 GPSInfo GPSAltitude Rational 1 789/10 | ||
0x0007 GPSInfo GPSTimeStamp Rational 3 12/1 34/1 56/1 | ||
0x000e GPSInfo GPSTrackRef Ascii 2 T | ||
0x000f GPSInfo GPSTrack Rational 1 0/1 | ||
0x0010 GPSInfo GPSImgDirectionRef Ascii 2 T | ||
0x0011 GPSInfo GPSImgDirection Rational 1 12/1 | ||
0x0012 GPSInfo GPSMapDatum Ascii 7 WGS-84 | ||
0x001d GPSInfo GPSDateStamp Ascii 11 2012:11:22 |