Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix pixelX_ to double, add idgcp_, log_ format
- Loading branch information
jmenezes
committed
Feb 19, 2018
1 parent
1001f48
commit a66f5e0
Showing
10 changed files
with
30 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
#GPL2 jmenezes ODM extract exif lon/lat project to utm with proj4; 2017-05-28 | ||
# line 23 tab bugfix 2017-07-11 | ||
# apt-get install exiftool geotiff-bin | ||
if [ $# -lt 2 ]; then | ||
echo "run inside /images/ directory" 1>&2 | ||
echo $(basename $0)" zone [S|N] > camera_wgs84utm.txt" 1>&2 | ||
exit 1 | ||
fi | ||
Z=$1 | ||
case $2 in | ||
s|S) printf "EPSG:327%02d\n" $Z; H=south | ||
;; | ||
n|N) printf "EPSG:326%02d\n" $Z; H=north | ||
;; | ||
*) | ||
;; | ||
esac | ||
for i in *[jpg,JPG,tif,TIF]; do | ||
exiftool $i | grep GPS | grep Position | \ | ||
awk -F \: -v img=$i '{ print $2","img }' | tr -d [:blank:] | \ | ||
sed s/deg/d/g | tr \, \\t | awk '{ print $2,$1,$3 }' | \ | ||
proj -f "%.3f" +proj=utm +zone=$Z +$H +ellps=WGS84 | ||
done | sed s/\ /\\t/g | ||
exit 0 |
Empty file.
Empty file.
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
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.