AW: [gdal-dev] Create gdaldataset from in-memory Image/Bitmap/byte[]/MemoryStream

Felix Obermaier obe at IVV-AACHEN.DE
Wed May 26 04:21:04 EDT 2010


Tamas,

I just went through the gdal 1.7 release notes, and read that a function 'FileFromMemBuffer' was added to the csharp bindings.
Since I'm getting image blobs from an sqlite database (png), is it a suitable way to use that function?

Thanks
Felix Obermaier

------------------------------------------
 Ingenieurgruppe IVV GmbH & Co. KG
 Dipl.-Ing. Felix Obermaier
 Oppenhoffallee 171
 52066 Aachen

 Telefon: +49 (241) 94691-39
 Telefax: +49 (241) 531622
 eMail: obe at ivv-aachen.de<mailto:obe at ivv-aachen.de>
 Internet: http://www.ivv-aachen.de

 Sitz der Gesellschaft: Aachen
 Amtsgericht Aachen HRA 6212
 GF: Bauassessor Dr.-Ing. Dieter Hölsken
 IVV-Management GmbH
 Amtsgericht Aachen HRB 12543

Von: Tamas Szekeres [mailto:szekerest at gmail.com]
Gesendet: Donnerstag, 20. Mai 2010 23:03
An: Felix Obermaier
Cc: gdal-dev at lists.osgeo.org
Betreff: Re: [gdal-dev] Create gdaldataset from in-memory Image/Bitmap/byte[]/MemoryStream

Felix,

You can find examples in the gdal source tree about creating a dataset and write data by using the WriteRaster method:

http://trac.osgeo.org/gdal/browser/trunk/gdal/swig/csharp/apps/GDALWrite.cs
http://trac.osgeo.org/gdal/browser/trunk/gdal/swig/csharp/apps/GDALDatasetWrite.cs

For more information about the raster IO operations in C# see: http://trac.osgeo.org/gdal/wiki/GdalOgrCsharpRaster

Best regards,

Tamas



2010/5/20 Felix Obermaier <obe at ivv-aachen.de<mailto:obe at ivv-aachen.de>>
Hello list,

I'm using GDAL via swig C# bindings. Is there a way to create a gdal dataset object from an in-memory Image/Bitmap/byte[]/MemoryStream, and if so, how  can I achive this.

Thanks in advance

Felix Obermaier

------------------------------------------
 Ingenieurgruppe IVV GmbH & Co. KG
 Dipl.-Ing. Felix Obermaier
 Oppenhoffallee 171
 52066 Aachen

 Telefon: +49 (241) 94691-39
 Telefax: +49 (241) 531622
 eMail: obe_at_ivv-aachen.de<http://obe_at_ivv-aachen.de>
 Internet: http://www.ivv-aachen.de

 Sitz der Gesellschaft: Aachen
 Amtsgericht Aachen HRA 6212
 GF: Bauassessor Dr.-Ing. Dieter Hölsken
 IVV-Management GmbH
 Amtsgericht Aachen HRB 12543


_______________________________________________
gdal-dev mailing list
gdal-dev at lists.osgeo.org<mailto:gdal-dev at lists.osgeo.org>
http://lists.osgeo.org/mailman/listinfo/gdal-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20100526/f3bda7a7/attachment.html


More information about the gdal-dev mailing list