mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-01-18 19:52:09 +01:00
parent
b72a9e67fe
commit
680104fec3
@ -17,6 +17,7 @@ public:
|
||||
TIFFFile(QIODevice *device);
|
||||
|
||||
bool isValid() const {return _ifd != 0;}
|
||||
bool isBE() const {return _be;}
|
||||
quint32 ifd() const {return _ifd;}
|
||||
|
||||
bool seek(qint64 pos) {return _device->seek(_offset + pos);}
|
||||
|
@ -113,9 +113,12 @@ Coordinates EXIFParser::coordinates(TIFFFile &file, const IFDEntry &lon,
|
||||
if (!c.isValid())
|
||||
return Coordinates();
|
||||
|
||||
if (lonRef.offset == 'W')
|
||||
char ew = file.isBE() ? lonRef.offset >> 24 : lonRef.offset;
|
||||
char ns = file.isBE() ? latRef.offset >> 24 : latRef.offset;
|
||||
|
||||
if (ew == 'W')
|
||||
c.rlon() = -c.lon();
|
||||
if (latRef.offset == 'S')
|
||||
if (ns == 'S')
|
||||
c.rlat() = -c.lat();
|
||||
|
||||
return c;
|
||||
|
Loading…
x
Reference in New Issue
Block a user