Bug 281316

Summary: add GPS info to gallery.xml in htmlexport tool [patch]
Product: [Applications] digikam Reporter: Reto Zingg <g.d0b3rm4n>
Component: Plugin-Generic-HTMLGalleryAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: wishlist CC: caulier.gilles
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In: 2.2.0
Sentry Crash Report:
Attachments: adds the altitude, longitude and latitude to the gallery.xml
adds the altitude, longitude and latitude to the gallery.xml

Description Reto Zingg 2011-09-04 13:03:19 UTC
Created attachment 63372 [details]
adds the altitude, longitude and latitude to the gallery.xml

Version:           unspecified
OS:                Linux

the GPS info should also be exported to the gallery.xml file
(together with the other exif info), so it can be used further. Themes with
included geoinfo maps (ą la Flickr) should then be easy possible with
leaflet or openlayer.

My patch adds the altitude, longitude and latitude to the gallery.xml file
in the exif section.

I added an example how to use it to the "details"-theme.

Please consider my patch.

Reproducible: Didn't try

Steps to Reproduce:
export a gallery with HTML-Export plugin.

Actual Results:  
the generated gallery.xml file does not include geolocation details (gps info, such as altitude, longitude and latitude)

Expected Results:  
the generated gallery.xml file includes the following tags in exif section:
exifgpslatitude
exifgpslongitude
exifgpsaltitude
Comment 1 Reto Zingg 2011-09-04 15:09:47 UTC
Created attachment 63374 [details]
adds the altitude, longitude and latitude to the gallery.xml

If the pic does not have exif or xmp header, then the element.mExifGPSAltitude, element.mExifGPSLatitude and element.mExifGPSLongitude would have been empty, so this should now be fixed, also in the template.xlt was a little mess which is fixed now.
Comment 2 Petri Damstén 2011-09-13 07:31:42 UTC
Git commit b431e3d5577bbcc069f46160d39778405bdb999c by Petri Damstén.
Committed on 12/09/2011 at 11:16.
Pushed by pdamsten into branch 'master'.

add GPS info to gallery.xml in htmlexport plugin
BUG: 281316

M  +3    -0    htmlexport/generator.cpp
M  +9    -2    htmlexport/imageelement.h
M  +22   -2    htmlexport/imagegenerationfunctor.cpp
M  +3    -0    htmlexport/themes/details/template.xsl

http://commits.kde.org/kipi-plugins/b431e3d5577bbcc069f46160d39778405bdb999c