[gdal-dev] vsimem files

Momtchil Momtchev momtchil at momtchev.com
Mon Nov 23 11:50:19 PST 2020


     Hello,

I am adding support for working with *vsimem* files from JS buffers to 
*node-gdal-next *and I have a couple of questions.

  * There is an example for working with *vsimem* files at
    https://gdal.org/api/cpl.html#_CPPv424VSIInstallMemFileHandlerv - it
    says that a *VSIFile* handle is to be immediately closed with
    *VSIFClose* after obtaining it. For me it I get a segfault if I do
    this, but works perfectly if I do not.
  * It seems that I am supposed to call *VSIInstallMemFileHandler*
    before using vsimem files, but they seem to work anyway. So, my
    question is do I need to call it and is there any downside to
    calling it if I am not using vsimem files (ie can I call it all the
    time)?


-- 
Momtchil Momtchev <momtchil at momtchev.com>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20201123/538364e8/attachment.html>


More information about the gdal-dev mailing list