[josm-dev] Image Direction / Compass Camera images

Sebastian Klein bastikln at googlemail.com
Sat May 15 22:30:01 BST 2010


Florian Lohoff wrote:
> 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.

Sure, if you donate a camera, I'll fully implement it. ;)

Seriously, there is a lot to do and we cannot add each extension that is 
used by a single hardware model. But it's a damn cool feature. 
Hopefully, there will be other vendors and models supporting this!


Sebastian




More information about the josm-dev mailing list