@@ -50,8 +50,8 @@ class Exiftool implements MapperInterface
5050 const TITLE = 'Title ' ;
5151 const XRESOLUTION = 'XResolution ' ;
5252 const YRESOLUTION = 'YResolution ' ;
53- const GPSLATITUDEREF = 'GPSLatitudeRef ' ;
54- const GPSLONGITUDEREF = 'GPSLongitudeRef ' ;
53+ const GPSLATITUDE = 'GPSLatitude ' ;
54+ const GPSLONGITUDE = 'GPSLongitude ' ;
5555
5656 /**
5757 * Maps the ExifTool fields to the fields of
@@ -86,8 +86,8 @@ class Exiftool implements MapperInterface
8686 self ::YRESOLUTION => Exif::VERTICAL_RESOLUTION ,
8787 self ::IMAGEWIDTH => Exif::WIDTH ,
8888 self ::CAPTIONABSTRACT => Exif::CAPTION ,
89- self ::GPSLATITUDEREF => Exif::GPS ,
90- self ::GPSLONGITUDEREF => Exif::GPS ,
89+ self ::GPSLATITUDE => Exif::GPS ,
90+ self ::GPSLONGITUDE => Exif::GPS ,
9191 );
9292
9393 /**
@@ -145,10 +145,10 @@ public function mapRawData(array $data)
145145 $ focalLengthParts = explode (' ' , $ value );
146146 $ value = (int ) reset ($ focalLengthParts );
147147 break ;
148- case self ::GPSLATITUDEREF :
148+ case self ::GPSLATITUDE :
149149 $ gpsData ['lat ' ] = $ this ->extractGPSCoordinates ($ value );
150150 break ;
151- case self ::GPSLONGITUDEREF :
151+ case self ::GPSLONGITUDE :
152152 $ gpsData ['lon ' ] = $ this ->extractGPSCoordinates ($ value );
153153 break ;
154154 }
@@ -165,11 +165,11 @@ public function mapRawData(array $data)
165165 if ($ latitude !== false && $ longitude !== false ) {
166166 $ gpsLocation = sprintf (
167167 '%s,%s ' ,
168- (strtoupper ($ data [self :: GPSLATITUDEREF ][0 ]) === 'S ' ? -1 : 1 ) * $ latitude ,
169- (strtoupper ($ data [self :: GPSLONGITUDEREF ][0 ]) === 'W ' ? -1 : 1 ) * $ longitude
168+ (strtoupper ($ data [' GPSLatitudeRef ' ][0 ]) === 'S ' ? -1 : 1 ) * $ latitude ,
169+ (strtoupper ($ data [' GPSLongitudeRef ' ][0 ]) === 'W ' ? -1 : 1 ) * $ longitude
170170 );
171171
172- $ key = $ this ->map [self ::GPSLATITUDEREF ];
172+ $ key = $ this ->map [self ::GPSLATITUDE ];
173173
174174 $ mappedData [$ key ] = $ gpsLocation ;
175175 }
0 commit comments