[josm-dev] Image Direction / Compass Camera images

Florian Lohoff f at zz.de
Sat May 15 21:16:33 BST 2010


Hi,

as Sony released the DSC HX5V with GPS _and_ a compass i'd like to see
the bearing in JOSM.

The camera puts the direction into Exif tags:

flo at lifebook:~/Desktop/sony-test2$ exiv2 -pa dsc00174.jpg | grep GPS
Exif.Image.GPSTag                            Long        1  10746
Exif.GPSInfo.GPSVersionID                    Byte        4  2.2.0.0
Exif.GPSInfo.GPSLatitudeRef                  Ascii       2  North
Exif.GPSInfo.GPSLatitude                     Rational    3  51deg 46' 43.014" 
Exif.GPSInfo.GPSLongitudeRef                 Ascii       2  East
Exif.GPSInfo.GPSLongitude                    Rational    3  8deg 21' 56.297" 
Exif.GPSInfo.GPSAltitudeRef                  Byte        1  Above sea level
Exif.GPSInfo.GPSAltitude                     Rational    1  93.3 m
Exif.GPSInfo.GPSTimeStamp                    Rational    3  15:12:07
Exif.GPSInfo.GPSStatus                       Ascii       2  Measurement in progress
Exif.GPSInfo.GPSMeasureMode                  Ascii       2  Three-dimensional measurement
Exif.GPSInfo.GPSSpeedRef                     Ascii       2  km/h
Exif.GPSInfo.GPSSpeed                        Rational    1  11/10
Exif.GPSInfo.GPSTrackRef                     Ascii       2  True direction
Exif.GPSInfo.GPSTrack                        Rational    1  8931/100
Exif.GPSInfo.GPSImgDirectionRef              Ascii       2  Magnetic direction
Exif.GPSInfo.GPSImgDirection                 Rational    1  4650/100
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Exif.GPSInfo.GPSMapDatum                     Ascii       7  WGS-84
Exif.GPSInfo.GPSDateStamp                    Ascii      11  2010:05:15
Exif.GPSInfo.GPSDifferential                 Short       1  Without correction

Example image here: http://silicon-verl.de/home/flo/tmp/dsc00174.jpg

I am Linux only but i saw a great visualization in one review:

http://www.gps-camera.eu/images/stories/Sony/sony_hx5v_kompass_test_screen02.jpg
http://www.gps-camera.eu/images/stories/Sony/sony_hx5v_kompass_test_screen01.jpg

Review:

http://www.gps-camera.eu/index.php?option=com_content&view=article&id=240:sony-cyber-shot-dsc-hx5v-mit-gps-und-kompass&catid=29:hardware&Itemid=59

Is anyone working on something like this? A first step probably be to replace
the camera icon by a ball with a little arrow or something. Converting
focal length into a horizontal picture angle could get a bit more difficult.

Flo
-- 
Florian Lohoff                                                 f at zz.de
"Es ist ein grobes Missverständnis und eine Fehlwahrnehmung, dem Staat
im Internet Zensur- und Überwachungsabsichten zu unterstellen."
- - Bundesminister Dr. Wolfgang Schäuble -- 10. Juli in Berlin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 827 bytes
Desc: Digital signature
URL: <http://lists.openstreetmap.org/pipermail/josm-dev/attachments/20100515/b6ba11de/attachment.pgp>


More information about the josm-dev mailing list