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. K
http://www.gdal.org/frmt_mem.html
On Thu, May 20, 2010 at 2:48 PM, Felix Obermaier wrote:
> 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
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 in
haft: Aachen
Amtsgericht Aachen HRA 6212
GF: Bauassessor Dr.-Ing. Dieter Hölsken
IVV-Management GmbH
Amtsgericht Aachen HRB 12543
Von: Tamas Szekeres [mailto:szeker...@gmail.com]
Gesendet: Donnerstag, 20. Mai 2010 23:03
An: Felix Obermaier
Cc: gdal-dev@lists.osgeo.org
Betreff: Re: [gdal-dev] C
.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:szeker...@gmail.com]
> Gesendet: Donnerstag, 20. Mai 2010 23:03
&
2010/5/26 Even Rouault
> Felix,
>
> yes you should be able to use FileFromMemBuffer() to create a virtual file
> and
> open it with the PNG driver (since the PNG driver supports virtual IO -->
> as
> confirmed by gdalinfo --format PNG)
>
> Here's the C API for it :
> http://gdal.org/cpl__vsi_8h.h