[gdal-dev] acess /vsimem files

Roy-Sabourin, Julien (ECCC) julien.roy-sabourin.eccc at gccollaboration.ca
Thu Aug 6 06:37:41 PDT 2020


(pyton)
Hi, I'm using
driver.Create('/vsimem/file.tif', xsize, ysize, 1, gdal.GDT_Byte)
to make a tif file without writing on disk.
Then I associate data and statistics to the tiff and i what to return the raw bytes of the file.
How can i acces the memory file, i tired
VSIGetMemFileBuffer_unsafe('/vsimem/v.tif')
but there is praticlly no documentation for this method in python.

Thanks in advance
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20200806/0c6c09cb/attachment-0001.html>


More information about the gdal-dev mailing list