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 <[email protected]> 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 > [email protected] > https://lists.osgeo.org/mailman/listinfo/gdal-dev
_______________________________________________ gdal-dev mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/gdal-dev
