请教怎么从jpg文件中读取gps信息,该信息应该包含在exif头信息里的

请问如何从jpg文件中读取gps信息,该信息应该包含在exif头信息里的
如题,不甚感激

------解决方案--------------------
標準的文件格式包括:


• File Header,
• 0th IFD,
• 0th IFD Value,
• 1st IFD,
• 1st IFD Value,
• 1st (Thumbnail) Image Data,
• 0th (Primary) Image Data.





GPS IFD is a set of tags for recording GPS information. It is pointed to by the offset from the TIFF header (Value Offset) indicated by a GPS private tag value.


GPS Info IFD Pointer
Tag = 34853 (8825.H)
Type = LONG
Count = 1
Default = none