Re: mapscript with php as module does not flush buffers
Steve Lime <[email protected]> Tue, 7 Jan 2020 14:45:44 -0600
| Newsgroups | gmane.comp.gis.mapserver.user |
|---|---|
| Message-ID | <CAMrKZ9-WudrM0Mgptf7aCfJfG_rp1d31cY_D6jZrD=NCOpJgAw@mail.gmail.com> |
--===============4920637424713846574== Content-Type: multipart/alternative; boundary="000000000000b9d901059b92dc92" --000000000000b9d901059b92dc92 Content-Type: text/plain; charset="UTF-8" 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 <[email protected]> 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 > [email protected] > https://lists.osgeo.org/mailman/listinfo/mapserver-users --000000000000b9d901059b92dc92 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Hmmm... Raster or vector? I can poke around the GDAL/OGR c= ode to see if something is happening in MapServer. Have you tried explicit = layer closes?</div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D= "gmail_attr">On Thu, Jan 2, 2020 at 5:06 PM Jan Hartmann <<a href=3D"mai= lto:[email protected]">[email protected]</a>> wrote:<br></div><b= lockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-le= ft:1px solid rgb(204,204,204);padding-left:1ex">Hi all,<br> <br> I use PHP-Mapscript to server WMS-maps, with a MapFile based on an <br> underlying VRT-file. My application changes the geometry transformation <br= > of the VRT-file, and reloads the WMS. It uses the same MapFile ($oMap =3D <= br> ms_newMapObj($mapfile), but with a changed underlying VRT-file;<br> <br> When I use PHP as CGI, the reloaded WMS correctly shows the map with the <b= r> new transformation. With PHP as an Apache module,=C2=A0 older transformatio= ns <br> are displayed in a random manner. I guess the VRT-file gets buffered <br> somewhere, but I am unable to flush that buffer, either with <br> PHP-functions or with random parameters for the WMS-call.<br> <br> Any ideas? I would prefer to use PHP as a module.<br> <br> Thanks,<br> <br> Jan<br> _______________________________________________<br> mapserver-users mailing list<br> <a href=3D"mailto:[email protected]" target=3D"_blank">mapser= [email protected]</a><br> <a href=3D"https://lists.osgeo.org/mailman/listinfo/mapserver-users" rel=3D= "noreferrer" target=3D"_blank">https://lists.osgeo.org/mailman/listinfo/map= server-users</a></blockquote></div> --000000000000b9d901059b92dc92-- --===============4920637424713846574== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KbWFwc2VydmVy LXVzZXJzIG1haWxpbmcgbGlzdAptYXBzZXJ2ZXItdXNlcnNAbGlzdHMub3NnZW8ub3JnCmh0dHBz Oi8vbGlzdHMub3NnZW8ub3JnL21haWxtYW4vbGlzdGluZm8vbWFwc2VydmVyLXVzZXJz --===============4920637424713846574==--