[Mapserver-users] Strange result with WMS layer
Fortin,Nicolas [SteFoy]
nicolas.fortin at ec.gc.ca
Wed Mar 17 11:55:37 PST 2004
Yessssss...thank you very much Frank, you make my day!
I added the CPL_DEBUG=ON env var long time ago for debug purpose but I no longer need it now.
Nicolas
-----Message d'origine-----
De : Frank Warmerdam [mailto:warmerdam at pobox.com]
Envoyé : Wednesday, March 17, 2004 2:45 PM
À : Fortin,Nicolas [SteFoy]
Cc : Mapserver User List
Objet : Re: RE : [Mapserver-users] Strange result with WMS layer
Fortin,Nicolas [SteFoy] wrote:
> And if I try with shp2img, I got the right image with this message:
>
> GDAL: GDALOpen(C:\Inetpub\wwwroot\tmp\1234567890.img.tmp) succeeds as
> PNG.
> GDAL: GDALClose(C:\Inetpub\wwwroot\tmp\1234567890.img.tmp)
> GDAL: GDALDeregistered_GTiff() called.
...
> I made a simple viewer to see the layers of one of my mapfile. Some
> of these layers are valid WMS layers. When I want to see one of these
> layers, the result is the html in ascii with this at the begining:
>
> GDAL: GDALClose(C:/Inetpub/wwwroot/tmp/107954018813960.img.tmp)
>
> Content-type: text/html
Nicolas,
The GDAL: ... messages are debug messages from GDAL. Normally they should be turned off though setting the CPL_DEBUG environment variable to ON will turn them on. On unix (at least) they go to stderr and would not normally be returned from a cgi-bin. Instead they would be logged in the error logfile for the web server.
The "Content-type: text/html" is supposed to be the first line returned by a cgi, and indicates to the web server (and the receiving browser) that what follows is HTML.
So, my suggestion is to review your environment variable settings an unset CPL_DEBUG.
I haven't been following the rest of your error report so I don't know if this is the actual problem or unrelated.
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 | Geospatial Programmer for Rent
More information about the MapServer-users
mailing list