D18010: Allow zero altitude/longitude/latitude exiv gps data

2019-01-17 Thread Alexander Stippich
astippich updated this revision to Diff 49750. astippich added a comment. - fix gps altitude precision REPOSITORY R286 KFileMetaData CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D18010?vs=49317=49750 BRANCH fix_zero_gps REVISION DETAIL https://phabricator.kde.org/D18010

D18010: Allow zero altitude/longitude/latitude exiv gps data

2019-01-16 Thread Alexander Stippich
astippich added inline comments. INLINE COMMENTS > bruns wrote in exiv2extractor.cpp:298 > when you rewrite this as > > if (it != data.end()) { > auto ratio = it->value().toRational(); > it = data.findKey(Exiv2::ExifKey("Exif.GPSInfo.GPSAltitudeRef")); > if ((ratio.second !=

D18010: Allow zero altitude/longitude/latitude exiv gps data

2019-01-13 Thread Stefan Brüns
bruns added inline comments. INLINE COMMENTS > exiv2extractor.cpp:298 > } > } > return alt; when you rewrite this as if (it != data.end()) { auto ratio = it->value().toRational(); it = data.findKey(Exiv2::ExifKey("Exif.GPSInfo.GPSAltitudeRef")); if

D18010: Allow zero altitude/longitude/latitude exiv gps data

2019-01-12 Thread Stefan Brüns
bruns accepted this revision. This revision is now accepted and ready to land. REPOSITORY R286 KFileMetaData BRANCH fix_zero_gps REVISION DETAIL https://phabricator.kde.org/D18010 To: astippich, bruns Cc: kde-frameworks-devel, #baloo, ashaposhnikov, michaelh, astippich, spoorun,

D18010: Allow zero altitude/longitude/latitude exiv gps data

2019-01-12 Thread Alexander Stippich
astippich added a dependency: D18205: test empty and zero gps data. REPOSITORY R286 KFileMetaData REVISION DETAIL https://phabricator.kde.org/D18010 To: astippich, bruns Cc: kde-frameworks-devel, #baloo, ashaposhnikov, michaelh, astippich, spoorun, ngraham, bruns, abrahams

D18010: Allow zero altitude/longitude/latitude exiv gps data

2019-01-12 Thread Alexander Stippich
astippich updated this revision to Diff 49317. astippich added a comment. - rebase on revision REPOSITORY R286 KFileMetaData CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D18010?vs=48789=49317 BRANCH fix_zero_gps REVISION DETAIL https://phabricator.kde.org/D18010 AFFECTED

D18010: Allow zero altitude/longitude/latitude exiv gps data

2019-01-07 Thread Stefan Brüns
bruns requested changes to this revision. This revision now requires changes to proceed. REPOSITORY R286 KFileMetaData REVISION DETAIL https://phabricator.kde.org/D18010 To: astippich, bruns Cc: kde-frameworks-devel, #baloo, ashaposhnikov, michaelh, astippich, spoorun, ngraham, bruns,

D18010: Allow zero altitude/longitude/latitude exiv gps data

2019-01-07 Thread Stefan Brüns
bruns added a comment. Can you create two test files, one with e.g. altitude == 0, and one without altitude? REPOSITORY R286 KFileMetaData REVISION DETAIL https://phabricator.kde.org/D18010 To: astippich, bruns Cc: kde-frameworks-devel, #baloo, ashaposhnikov, michaelh, astippich,

D18010: Allow zero altitude/longitude/latitude exiv gps data

2019-01-06 Thread Alexander Stippich
astippich created this revision. astippich added a reviewer: bruns. Herald added projects: Frameworks, Baloo. Herald added subscribers: Baloo, kde-frameworks-devel. astippich requested review of this revision. REVISION SUMMARY A zero value was used before to indicate invalid data, and thus 0°