2011-04-24 216 views
0

我試圖從圖像中獲取經度和緯度。的EXIF GPS陣列:php exif;緯度和經度?

[GPS] => Array 
    (
     [GPSVersion] => 
     [GPSLatitudeRef] => N 
     [GPSLatitude] => Array 
      (
       [0] => 57/1 
       [1] => 42/1 
       [2] => 45594/1000 
      ) 

     [GPSLongitudeRef] => E 
     [GPSLongitude] => Array 
      (
       [0] => 11/1 
       [1] => 54/1 
       [2] => 56615/1000 
      ) 

     [GPSAltitudeRef] => 
     [GPSAltitude] => 228/10 
     [GPSTimeStamp] => Array 
      (
       [0] => 10/1 
       [1] => 46/1 
       [2] => 12000/1000 
      ) 

     [GPSStatus] => A 
     [GPSMeasureMode] => 3 
     [GPSSpeedRef] => K 
     [GPSSpeed] => 4/10 
     [GPSTrackRef] => T 
     [GPSTrack] => 1719/100 
     [GPSImgDirectionRef] => M 
     [GPSImgDirection] => 32900/100 
     [GPSMapDatum] => WGS-84 
     [GPSDateStamp] => 2011:04:23 
     [GPSDifferential] => 0 
    ) 

我想緯度會千分之四萬五千五百九十四和經度一千分之五萬六千六百十五,但這些值似乎是這樣的。我做錯了,還是數據不正確?由於

回答

0

我解釋: [GPSLatitudeRef] => N [GPSLatitude] => Array ( [0] => 57/1 [1] => 42/1 [2] => 45594/1000 ) 57度,42分鐘,45秒和594毫秒北...人機工程學:在加拿大和西伯利亞的某個地方。

接下來的問題是「什麼是基準?」,它在[GPSMapDatum] => WGS-84元素中給出。

乾杯。基思。

PS:谷歌(WGS-84)說:http://en.wikipedia.org/wiki/World_Geodetic_System

PPS:看http://www.worldpress.org/images/maps/europe_600w.jpg,我把在北海接近挪威海岸這一點......我是不是熱情?

+1

每個座標分量的/#部分可能是最大誤差範圍。所以北57 +/- 1度。相當龐大。 – 2011-04-24 02:52:08

+0

是的,馬克,我沒有想到這一點;這將是一個精確的表達。我忽略了「/ 1」,因爲我根本不理解它們;-) – corlettk 2011-04-24 03:46:33