[gdal-dev] Can MEM-dataset be serialized as binary stream?

Even Rouault even.rouault at mines-paris.org
Sun Jan 8 13:14:34 EST 2012


Le samedi 07 janvier 2012 11:00:43, 吴磊 a écrit :
> Hi, guys,
> 
> I want to transfer some small datasets among compute nodes in a
> distribute system. Actually, they are not necessary to be persistence,
> they are only existed in memory.
> Is there any approach I can use to serialize GDALDataset. MEM-dataset
> seems to be only used in local node, am I right?

You can for example CreateCopy to a /vsimem/a_geotiff.tif and then get the 
buffer with VSIGetMemFileBuffer() ( 
http://gdal.org/cpl__vsi_8h.html#eaf26bcc4a5314371f426bb2a5e6ce7a )

> 
> Thanks and regards,
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev


More information about the gdal-dev mailing list