PHP Mapscript and WMS Server

Frank Warmerdam warmerdam at POBOX.COM
Sat Sep 2 12:31:00 EDT 2006


Nicol Hermann wrote:
> 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.

Nicol,

There was a bug with the buffer not being properly resized when
the content type was stripped which is likely what you are seeing.
This is correct now in CVS and should be fixed in the beta2 release.

> 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?

I've no idea what might be causing this.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGeo, http://osgeo.org



More information about the mapserver-users mailing list