Advertisement

position信息在JPEG图片文件中加入android

阅读量:

借助ExifInterface工具,能够在拍摄过程中将部分属性数据嵌入至图像文件中,其中包含地理坐标信息。本节阐述一种将地理经纬度参数记录于JPEG格式图像文件中的实现方式!

核心代码

复制代码
  /** * 浮点型经纬度值转成度分秒格式
    
 	 * * @param coord
    
 	 * @return
    
 	 */
    
 	public String decimalToDMS(double coord) {
    
 		String output, degrees, minutes, seconds;
    
  
    
 		// gets the modulus the coordinate divided by one (MOD1).
    
 		// in other words gets all the numbers after the decimal point.
    
 		// e.g. mod := -79.982195 % 1 == 0.982195
    
 		//
    
 		// next get the integer part of the coord. On other words the whole
    
 		// number part.
    
 		/

全部评论 (0)

还没有任何评论哟~