[gdal-dev] acess /vsimem files

jratike80 jukka.rahkonen at maanmittauslaitos.fi
Thu Aug 6 08:10:47 PDT 2020


Hi,

Perhaps you could use the autotest
https://github.com/OSGeo/gdal/blob/master/autotest/gcore/tiff_read.py#L552
as an example.

-Jukka Rahkonen-




Roy-Sabourin, Julien (ECCC) wrote
> (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
> 
> _______________________________________________
> gdal-dev mailing list

> gdal-dev at .osgeo

> https://lists.osgeo.org/mailman/listinfo/gdal-dev





--
Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html


More information about the gdal-dev mailing list