greenwich/io.py
def vsiprefix(path):
    """Returns a GDAL virtual filesystem prefixed path.

    Arguments:
    path -- file path as str
    """
    vpath = path.lower()
    scheme = VSI_SCHEMES.get(urlparse(vpath).scheme, '')
    for ext in VSI_TYPES:
        if ext in vpath:
            filesys = VSI_TYPES[ext]
            break
    else:
        filesys = ''
    if filesys and scheme:
        filesys = filesys[:-1]
    return ''.join((filesys, scheme, path))
def vsiprefix(path):
    vpath = path.lower()
    scheme = VSI_SCHEMES.get(urlparse(vpath).scheme, '')
    for ext in VSI_TYPES:
        if ext in vpath:
            filesys = VSI_TYPES[ext]
            break
    else:
        filesys = ''
    if filesys and scheme:
        filesys = filesys[:-1]
    return ''.join((filesys, scheme, path))
def vsiprefix ( path ) : vpath = path . lower ( ) scheme = VSI_SCHEMES . get ( urlparse ( vpath ) . scheme , '' ) for ext in VSI_TYPES : if ext in vpath : filesys = VSI_TYPES [ ext ] break else : filesys = '' if filesys and scheme : filesys = filesys [ : - 1 ] return '' . join ( ( filesys , scheme , path ) )
Returns a GDAL virtual filesystem prefixed path.

    Arguments:
    path -- file path as str
Returns a GDAL virtual filesystem prefixed path .