Android如何访问jpg中的位置数据 [英] Android how to access the location data in a jpg

查看:111
本文介绍了Android如何访问jpg中的位置数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在制作一款Android应用,其中包含一项在地图上显示图片的功能。



如何从.jpg文件中提取位置数据(如果存在位置数据)?

非常感谢,托德。

解决方案

有很好的教程,如何从jpg访问exif数据(包括您需要的GPS信息)可以帮助你:

http://android-coding.blogspot.com/2011/10/read-exif-of-jpg-file-using.html



官方文档中介绍了相应的课程:

http:/ /developer.android.com/reference/android/media/ExifInterface.html



还可以找到有用的帖子(转换GPS信息):

http:// android -coding.blogspot.com/2011/10/convert-gps-tag-of-ex ifinterface-to.html


I'm making an Android app that includes a feature to show images on a map.

How can I extract the location data from a .jpg file (if there is location data)?

Many thanks, Todd.

解决方案

There is nice tutorial how to access exif data (that includes GPS info you need) from jpg that can help you:
http://android-coding.blogspot.com/2011/10/read-exif-of-jpg-file-using.html

The corresponding class is described in official docs:
http://developer.android.com/reference/android/media/ExifInterface.html

Also useful post (convert GPS info) can be found:
http://android-coding.blogspot.com/2011/10/convert-gps-tag-of-exifinterface-to.html

这篇关于Android如何访问jpg中的位置数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆