Bug 281316 - add GPS info to gallery.xml in htmlexport tool [patch]
Summary: add GPS info to gallery.xml in htmlexport tool [patch]
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-Generic-HTMLGallery (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR wishlist
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-04 13:03 UTC by Reto Zingg
Modified: 2017-07-09 17:25 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 2.2.0


Attachments
adds the altitude, longitude and latitude to the gallery.xml (4.12 KB, patch)
2011-09-04 13:03 UTC, Reto Zingg
Details
adds the altitude, longitude and latitude to the gallery.xml (4.44 KB, patch)
2011-09-04 15:09 UTC, Reto Zingg
Details

Note You need to log in before you can comment on or make changes to this bug.
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