Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/python-2.7/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
图像方向-iOS元数据_Ios_Gps_Metadata - Fatal编程技术网

图像方向-iOS元数据

图像方向-iOS元数据,ios,gps,metadata,Ios,Gps,Metadata,我正在尝试将GPS元数据添加到图像中。我参考了这个链接来了解如何设置其他键值。但我无法找到如何获取“图像方向”,即键kGimagePropertygPSimgDirection和kGimagePropertygPSimgDirectionRef的值。 我不知道“图像方向”是什么意思,也不知道从何处获取值。位置管理器的location属性没有任何此类属性。尝试使用CGImageSourceRef和CGImageSourceCopyPropertiesAtIndex(…)来获取GPS数据,它返回图像

我正在尝试将GPS元数据添加到图像中。我参考了这个链接来了解如何设置其他键值。但我无法找到如何获取“图像方向”,即键
kGimagePropertygPSimgDirection
kGimagePropertygPSimgDirectionRef
的值。
我不知道“图像方向”是什么意思,也不知道从何处获取值。位置管理器的
location
属性没有任何此类属性。

尝试使用
CGImageSourceRef
CGImageSourceCopyPropertiesAtIndex(…)
来获取GPS数据,它返回图像方向和图像方向参考。它们是Cocoa/Cocoa.h的一部分


您还可以下载苹果的ImageApp示例,了解其使用方法。

尝试使用
cImageSourceRef
cImageSourceCopyPropertiesAtIndex(…)
获取GPS数据时,它会返回图像方向和图像方向参考。它们是Cocoa/Cocoa.h的一部分

您还可以下载Apple的ImageApp示例,了解其使用方法