Hi Frank, thank you very much for the given example. I tried your script and in general it works. There a two things which are strange.
I tried the following REQUEST http://localhost/~nicol/mapserver/dev/wxsGetMap.php?REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&LAYERS=flurst&WIDTH=200&HEIGHT=200&FORMAT=image/gif&SRS=EPSG:31467&BBOX=3419615.22636,5523296.90857,3420494.15553,5524175.83774 The resulting image contains "bad lines" on the end. Here is the output so that you can see what i mean. http://geoworld.de/wxs/wxs_output_getmap.gif The datasource of this layer is postgresql/postgis. The second thing: When i change the outputformat to png (image/png) the image is completely broken. Has this behaviour something to do with the first issue mentioned? Do i miss something or is this a bug? Many thanks for your help. Nicol Am Donnerstag, den 31.08.2006, 11:31 -0400 schrieb Frank Warmerdam: > Nicol Hermann wrote: > > Bart, > > i there any working example how to use the GetMap Request with the new > > MapScript wrappers for WxS Services? > > I had no look so far using PHP Mapscript. > > Any code snippets? > > Many thanks > > Nicol > > Nicol, > > I have confirmed that the WxS methods have been added to PHP MapScript for > 4.10; however, I neglected to add any examples of it in the WxS howto. > > I've done a very very quick test with the following script which at least > seems to parse properly. Could you try something like it and see if it works? > > <?php > > dl("php_mapscript.so"); > > $req = ms_newowsrequestobj(); > $req->loadParams(); > > $map = ms_newMapObj( "/u/www/maps/ukpoly/ukpoly.map" ); > $map->OWSDispatch( $req ); > > ?> > > If so, I'll update the howto with the example. > > Best regards,
