从图像访问地理位置详细信息-ios 8.3
我完全是IOS的新手,所以我不知道我错过了什么,但我已经通过网站从图片中获取了位置细节,但没有运气。 如果有人能帮忙,那就太好了。 以下代码位于UIImagepicker的didFinishPickingMediaWithInfo函数中 和输出:从图像访问地理位置详细信息-ios 8.3,ios,geolocation,Ios,Geolocation,我完全是IOS的新手,所以我不知道我错过了什么,但我已经通过网站从图片中获取了位置细节,但没有运气。 如果有人能帮忙,那就太好了。 以下代码位于UIImagepicker的didFinishPickingMediaWithInfo函数中 和输出: Image properties { ColorModel = RGB; Depth = 8; Orientation = 6; PixelHeight = 720; PixelWidth = 960; "{Exif}" = { Col
Image properties
{
ColorModel = RGB;
Depth = 8;
Orientation = 6;
PixelHeight = 720;
PixelWidth = 960;
"{Exif}" = {
ColorSpace = 1;
PixelXDimension = 960;
PixelYDimension = 720;
};
"{JFIF}" = {
DensityUnit = 0;
JFIFVersion = (
1,
0,
1
);
XDensity = 72;
YDensity = 72;
};
"{TIFF}" = {
Orientation = 6;
};
}
GPS (null)
所以图像确实附加了位置,但在抓取时,它为地理位置显示null
谢谢。您确定您的图像确实有坐标吗?你的输出表明它没有…是的,我肯定我有位置坐标。我在相册的图像属性中看到了位置细节。
Image properties
{
ColorModel = RGB;
Depth = 8;
Orientation = 6;
PixelHeight = 720;
PixelWidth = 960;
"{Exif}" = {
ColorSpace = 1;
PixelXDimension = 960;
PixelYDimension = 720;
};
"{JFIF}" = {
DensityUnit = 0;
JFIFVersion = (
1,
0,
1
);
XDensity = 72;
YDensity = 72;
};
"{TIFF}" = {
Orientation = 6;
};
}
GPS (null)