photos2geojson/utils.py
def convert_to_degress(value):
    """
    Helper function to convert the GPS coordinates stored in the EXIF to degress in float format
    :param value:
    :type value: exifread.utils.Ratio
    :rtype: float
    """
    try:
        d = float(value.values[0].num) / float(value.values[0].den)
        m = float(value.values[1].num) / float(value.values[1].den)
        s = float(value.values[2].num) / float(value.values[2].den)
    except (ZeroDivisionError, IndexError) as e:
        d = m = s = 0

    return d + (m / 60.0) + (s / 3600.0)

    Helper function to convert the GPS coordinates stored in the EXIF to degress in float format
    :param value:
    :type value: exifread.utils.Ratio
    :rtype: float
    
Helper function to convert the GPS coordinates stored in the EXIF to degress in float format
Helper function to convert the GPS coordinates stored in the EXIF to degress in float format
def convert_to_degress(value):
    try:
        d = float(value.values[0].num) / float(value.values[0].den)
        m = float(value.values[1].num) / float(value.values[1].den)
        s = float(value.values[2].num) / float(value.values[2].den)
    except (ZeroDivisionError, IndexError) as e:
        d = m = s = 0
    return d + (m / 60.0) + (s / 3600.0)
def convert_to_degress ( value ) : try : d = float ( value . values [ 0 ] . num ) / float ( value . values [ 0 ] . den ) m = float ( value . values [ 1 ] . num ) / float ( value . values [ 1 ] . den ) s = float ( value . values [ 2 ] . num ) / float ( value . values [ 2 ] . den ) except ( ZeroDivisionError , IndexError ) as e : d = m = s = 0 return d + ( m / 60.0 ) + ( s / 3600.0 )
Helper function to convert the GPS coordinates stored in the EXIF to degress in float format
Helper function to convert the GPS coordinates stored in the EXIF to degress in float format
"""
    Helper function to convert the GPS coordinates stored in the EXIF to degress in float format
    :param value:
    :type value: exifread.utils.Ratio
    :rtype: float
    """
None
float
value
None