Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
OGR outputs fail in fastcgi mode when STORAGE is set to stream #4858
When setting FORMATOPTION "STORAGE=stream" in an OGR outputformat, all fastcgi requests for that format will result in a 0 length response. This seems reasonable as the
cc @rouault . is there a workaround to use msIO* functions in OGR? Would there be any reason to not switch to a memory storage if we can detect we are run in an fcgi container?
There's currently no way (that I can imagine of) of using msIO* in OGR. But I can imagine that the CPL library in GDAL could be extended to accept user provided callbacks, that MapServer would set with its msIO functions.
Using memory storage is an alternative if the output fits in RAM. /vsistdout/ has the advantage to be a streaming mode.