[gdal-dev] How to convert GDAL Vector dataset to memory stream

Tamas Szekeres szekerest at gmail.com
Sat Jun 20 05:04:41 PDT 2020


Hi,

You could use a pre-allocated array to fill data from a GDAL dataset/bands.
The following examples could be used as a reference:

1. Read raster bands into separate byte arrays:

https://github.com/OSGeo/gdal/blob/master/gdal/swig/csharp/apps/GDALRead.cs#L139


 2. Read raster bands into bitmap data

https://github.com/OSGeo/gdal/blob/ecd7ed1420aa07691f88aca66ea8a13af38433f2/gdal/swig/csharp/apps/GDALReadDirect.cs#L140

3. Read dataset into bitmap data

https://github.com/OSGeo/gdal/blob/ecd7ed1420aa07691f88aca66ea8a13af38433f2/gdal/swig/csharp/apps/GDALDatasetRasterIO.cs#L116

Best regards,

Tamas



MRRAJESH <rajeshreddy82 at gmail.com> ezt írta (időpont: 2020. jún. 17., Sze,
18:39):

> Hello list,
>
> I'm using GDAL via swig C# bindings. Is there a way to create memory stream
> from gdal vector dataset. If so, how  can I achieve this.
>
> Thanks in advance
> Rajesh
>
>
>
>
> --
> Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20200620/868db98a/attachment.html>


More information about the gdal-dev mailing list