[gdal-dev] How to destroy/free VSIMEM in C++
MRRAJESH
rajeshreddy82 at gmail.com
Tue Jul 21 04:19:54 PDT 2020
Developers,
Below is the GDALVectorTranslate C++ code. I am clearing the vsibuf with
VSIUnlink. But still memory is not vanished. Do we need to call any other
methods?
try
{
.....
....
vsibufPath = string("/vsimem/mvt-") + GetUUID();
vsibuf = vsibufPath.c_str();
dst = (GDALDataset *)GDALVectorTranslate(vsibuf, NULL, 1, &hSrcDS, opt,
NULL);
}
catch (...)
{
throw;
}
...
...
GDALVectorTranslateOptionsFree(opt);
GDALClose(dst);
GDALClose(hSrcDS);
VSIUnlink(vsibuf);
Regards,
Rajesh
--
Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html
More information about the gdal-dev
mailing list