-
-
Notifications
You must be signed in to change notification settings - Fork 370
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OGR outputs fail in fastcgi mode when STORAGE is set to stream #4858
Conversation
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. |
I suspect the streaming mode will also fail if used through mapscript when the msIO functions have been configured to output to a buffer. I'll try to cook a workaround for this ... |
@rouault @szekerest could you have a look at the proposed fix ? |
Looks good to me. At some point, I should try to find a way for mapserver to plug its msIO functions to be used by the vsistdout virtual file system. |
applied for 6.4.2 in 3d174b4 |
…Server FCGI (MapServer/MapServer#4858) git-svn-id: https://svn.osgeo.org/gdal/trunk/gdal@27426 f0d54148-0727-0410-94bb-9a71ac55c965
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
/vsistdout/
datasource is not connected to the fastcgi msIO.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?