[gdal-dev] Using MEM datasets in librarified functions

Joaquim Manuel Freire Luís jluis at ualg.pt
Mon Mar 23 10:49:27 PDT 2020


HI,

Is that supposed to work?

We have a kind of toy program in GMT that calls a couple of librarified functions. It works well when the hSrcDS in
https://github.com/GenericMappingTools/gmt/blob/master/src/gmt_gdal_librarified.c#L382

was obtained with

hSrcDS = GDALOpen(fname_in, GA_ReadOnly);

but I want now to be able to use in memory data and created a MEM dataset whose handle works fine when used in GDALCreateCopy(). However, it crashes GDAL when used, for example, in GDALGrid()

Thanks from my sofa

Joaquim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20200323/92e7975b/attachment.html>


More information about the gdal-dev mailing list