Skip to content

Instantly share code, notes, and snippets.

@hobu
Created October 4, 2017 15:29
Show Gist options
  • Save hobu/6b41e878131bcb66da325aa173ecb7df to your computer and use it in GitHub Desktop.
Save hobu/6b41e878131bcb66da325aa173ecb7df to your computer and use it in GitHub Desktop.
files = gdal.ReadDir('/vsimem')
print ('files:', files)
# prints ('files:', ['duck2.tif'])
ds = gdal.Open('/vsimem/duck2.tif')
# RuntimeError: `/vsimem/duck2.tif' does not exist in the file system,
# and is not recognised as a supported dataset name.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment