I'm using GDAL .Net wrapper, GDAL.Net.
I have a list of scattered points ( in
X,Y,Z coordinates) that I would like to rasterized via the function
GDAL_GRID( or via the underlying .Net wrapper,
Gdal.wrapper_GDALGrid(). Currently this is what I do:
- I write the list of scattered points to CSV file
- Then I construct the
.vrtfile that maps to the previous CSV file, by using relevant .Net XML libraries.
- And then I use the
GDAL.Dataset ds =Gdal.OpenEx(vrtFile, 0, null, null, null))in .Net to read the contents of vrt file and CSV file into
Gdal.Dataset, so that I can use the
Gdal.wrapper_GDALGrid(tiffFile, ds, null, null, string.Empty)to create the raster file
Note that step 1 and 2 touch the file system, which I'm thinking of doing away with.
Is there anyway that I can create the
GDAL.Dataset ds straight from the scattered points, all in memory, without writing the scattered points to CSV, and create vrt file on disk?