Re: [mapserver-users] mapscript with php as module does not flush buffers

2020-01-07 Thread Steve Lime
Hmmm... Raster or vector? I can poke around the GDAL/OGR code to see if
something is happening in MapServer. Have you tried explicit layer closes?

On Thu, Jan 2, 2020 at 5:06 PM Jan Hartmann  wrote:

> Hi all,
>
> I use PHP-Mapscript to server WMS-maps, with a MapFile based on an
> underlying VRT-file. My application changes the geometry transformation
> of the VRT-file, and reloads the WMS. It uses the same MapFile ($oMap =
> ms_newMapObj($mapfile), but with a changed underlying VRT-file;
>
> When I use PHP as CGI, the reloaded WMS correctly shows the map with the
> new transformation. With PHP as an Apache module,  older transformations
> are displayed in a random manner. I guess the VRT-file gets buffered
> somewhere, but I am unable to flush that buffer, either with
> PHP-functions or with random parameters for the WMS-call.
>
> Any ideas? I would prefer to use PHP as a module.
>
> Thanks,
>
> Jan
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] mapscript with php as module does not flush buffers

2020-01-02 Thread Jan Hartmann

Hi all,

I use PHP-Mapscript to server WMS-maps, with a MapFile based on an 
underlying VRT-file. My application changes the geometry transformation 
of the VRT-file, and reloads the WMS. It uses the same MapFile ($oMap = 
ms_newMapObj($mapfile), but with a changed underlying VRT-file;


When I use PHP as CGI, the reloaded WMS correctly shows the map with the 
new transformation. With PHP as an Apache module,  older transformations 
are displayed in a random manner. I guess the VRT-file gets buffered 
somewhere, but I am unable to flush that buffer, either with 
PHP-functions or with random parameters for the WMS-call.


Any ideas? I would prefer to use PHP as a module.

Thanks,

Jan
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users