【问题标题】:php exif; latitude and longitude?php exif;纬度和经度?
【发布时间】:2011-04-24 00:55:09
【问题描述】:

我试图从图像中获取纬度和经度。 exif gps 数组:

   [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
    )

我认为纬度是 45594/1000 和经度 56615/1000,但这些值似乎是可行的。是我做错了,还是数据不正确?谢谢

【问题讨论】:

    标签: php exif


    【解决方案1】:

    我会解释: [GPSLatitudeRef] => N [GPSLatitude] => Array ( [0] => 57/1 [1] => 42/1 [2] => 45594/1000 ) 北纬 57 度 42 分 45 秒 594 毫秒... Ergo:在加拿大或西伯利亚的某个地方。

    下一个问题是“基准是什么?”,它在[GPSMapDatum] => WGS-84 元素中给出。

    干杯。基思。

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

    PPS:看看http://www.worldpress.org/images/maps/europe_600w.jpg,我会把那个点放在靠近挪威海岸的北海……我暖和吗?

    【讨论】:

    • 每个坐标分量的/#部分可以是最大误差范围。所以北纬 57 +/- 1 度。相当大。
    • 是的,马克,我没想到;那将是准确性的简洁表达。我忽略了“/1”,因为我根本不理解它们;-)
    猜你喜欢
    • 2012-07-23
    • 1970-01-01
    • 1970-01-01
    • 2012-09-07
    • 2012-09-30
    • 2013-09-09
    • 2013-02-21
    • 1970-01-01
    • 2011-12-17
    相关资源
    最近更新 更多