def _decimalDegrees2DMS(value, type):
    """
        Converts a Decimal Degree Value into
        Degrees Minute Seconds Notation.
        
        Pass value as double
        type = {Latitude or Longitude} as string
        
        returns a string as D:M:S:Direction
        created by: anothergisblog.blogspot.com 
    """
    degrees = int(value)
    submin = abs((value - int(value)) * 60)
    direction = ''
    if type == 'Longitude':
        if degrees < 0:
            direction = 'W'
        elif degrees > 0:
            direction = ' '
        else:
            direction = ''
        notation = ['{:>3}'.format(str(abs(degrees))), direction, '{:>5}'.
            format(str(round(submin, 2)))]
    elif type == 'Latitude':
        if degrees < 0:
            direction = 'S'
        elif degrees > 0:
            direction = ' '
        else:
            direction = ''
        notation = ['{:>2}'.format(str(abs(degrees))), direction, '{:>5}'.
            format(str(round(submin, 2)))]
    return notation
