<div dir="ltr"><div>Hi,</div><div><br></div><div>You could use a pre-allocated array to fill data from a GDAL dataset/bands. The following examples could be used as a reference:</div><div><br></div><div>1. Read raster bands into separate byte arrays:</div><div><br></div><div><a href="https://github.com/OSGeo/gdal/blob/master/gdal/swig/csharp/apps/GDALRead.cs#L139" target="_blank">https://github.com/OSGeo/gdal/blob/master/gdal/swig/csharp/apps/GDALRead.cs#L139</a> </div><div><br></div><div> 2. Read raster bands into bitmap data<br></div><div><br></div><div><a href="https://github.com/OSGeo/gdal/blob/ecd7ed1420aa07691f88aca66ea8a13af38433f2/gdal/swig/csharp/apps/GDALReadDirect.cs#L140">https://github.com/OSGeo/gdal/blob/ecd7ed1420aa07691f88aca66ea8a13af38433f2/gdal/swig/csharp/apps/GDALReadDirect.cs#L140</a><br></div><div><br></div><div>3. Read dataset into bitmap data</div><div><br></div><div><a href="https://github.com/OSGeo/gdal/blob/ecd7ed1420aa07691f88aca66ea8a13af38433f2/gdal/swig/csharp/apps/GDALDatasetRasterIO.cs#L116">https://github.com/OSGeo/gdal/blob/ecd7ed1420aa07691f88aca66ea8a13af38433f2/gdal/swig/csharp/apps/GDALDatasetRasterIO.cs#L116</a><br></div><div><br></div><div>Best regards,</div><div><br></div><div>Tamas</div><div><br></div><div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">MRRAJESH <<a href="mailto:rajeshreddy82@gmail.com" target="_blank">rajeshreddy82@gmail.com</a>> ezt írta (időpont: 2020. jún. 17., Sze, 18:39):<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello list,<br>
<br>
I'm using GDAL via swig C# bindings. Is there a way to create memory stream<br>
from gdal vector dataset. If so, how can I achieve this.<br>
<br>
Thanks in advance<br>
Rajesh<br>
<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html" rel="noreferrer" target="_blank">http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html</a><br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a></blockquote></div></div>