|
|
@ -74,8 +74,8 @@ def get_lat_lon(exif_data):
|
|
|
|
gps_longitude = gps_info.get('GPSLongitude')
|
|
|
|
gps_longitude = gps_info.get('GPSLongitude')
|
|
|
|
gps_longitude_ref = gps_info.get('GPSLongitudeRef')
|
|
|
|
gps_longitude_ref = gps_info.get('GPSLongitudeRef')
|
|
|
|
|
|
|
|
|
|
|
|
if (gps_latitude and gps_latitude_ref and gps_longitude
|
|
|
|
if (gps_latitude and gps_latitude_ref and gps_longitude and
|
|
|
|
and gps_longitude_ref):
|
|
|
|
gps_longitude_ref):
|
|
|
|
lat = convert_to_degrees(gps_latitude)
|
|
|
|
lat = convert_to_degrees(gps_latitude)
|
|
|
|
if gps_latitude_ref == 'S':
|
|
|
|
if gps_latitude_ref == 'S':
|
|
|
|
lat = -lat
|
|
|
|
lat = -lat
|
|
|
@ -103,8 +103,9 @@ def export_kml_file(dirname, fnames, kml_name):
|
|
|
|
pnt.coords = [(lon, lat)]
|
|
|
|
pnt.coords = [(lon, lat)]
|
|
|
|
|
|
|
|
|
|
|
|
# Add content to popup window
|
|
|
|
# Add content to popup window
|
|
|
|
pnt.description = ('<![CDATA[ <img src={} height="500px" />]]>'.format(
|
|
|
|
pnt.description = (
|
|
|
|
os.path.join(dirname, fname)))
|
|
|
|
'<![CDATA[ <img src="{}"" height="500px" />]]>'.format(
|
|
|
|
|
|
|
|
os.path.join(dirname, fname)))
|
|
|
|
pnt.stylemap.normalstyle.iconstyle.scale = 1
|
|
|
|
pnt.stylemap.normalstyle.iconstyle.scale = 1
|
|
|
|
pnt.stylemap.normalstyle.iconstyle.icon.href = (
|
|
|
|
pnt.stylemap.normalstyle.iconstyle.icon.href = (
|
|
|
|
'http://maps.google.com/'
|
|
|
|
'http://maps.google.com/'
|
|
|
|