- Timestamp:
- Mar 21, 2010, 11:58:42 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/AMetaData/JpegMetaData/Readers/XmpReader.class.php
r5222 r5237 451 451 $returned=explode(":", $value); 452 452 break; 453 case "exif:GPSLatitude": 454 case "exif:GPSLongitude": 455 case "exif:GPSDestLatitude": 456 case "exif:GPSDestLongitude": 457 $returned=Array('coord' => "", 'card'=>""); 458 preg_match_all('/(\d{1,3}),(\d{1,2})(?:\.(\d*)){0,1}(N|S|E|W)/', $value, $result); 459 $returned['coord']=$result[1][0]."° ".$result[2][0]."' "; 460 if(trim($result[3][0])!="") 461 { 462 $returned['coord'].= round(("0.".$result[3][0])*60,2)."\""; 463 } 464 switch($result[4][0]) 465 { 466 case "N": 467 $returned['card']="North"; 468 break; 469 case "S": 470 $returned['card']="South"; 471 break; 472 case "E": 473 $returned['card']="East"; 474 break; 475 case "W": 476 $returned['card']="West"; 477 break; 478 } 479 $type=ByteType::UNDEFINED; 480 break; 453 481 case "xmp:CreateDate": 454 482 case "xmp:ModifyDate": … … 604 632 case "exif:CFAPattern": 605 633 case "exif:DeviceSettingDescription": 606 case "exif:GPSLatitude":607 case "exif:GPSLongitude":608 case "exif:GPSDestLatitude":609 case "exif:GPSDestLongitude":610 634 $returned=$xmpValue; 611 635 $type=ByteType::UNDEFINED;
Note: See TracChangeset
for help on using the changeset viewer.