[mapserver-users] wms output problem

Rahkonen Jukka Jukka.Rahkonen at mmmtike.fi
Wed Jan 6 09:00:20 EST 2010


Hi,

Mapserver can always return images at least in png, jpeg and gif formats. You must explicitly tell it what format you want with WMS &FORMAT= parameter. You can check what kind of requests the client is sending from your Apache access.log file.

-Jukka-


Valeria Muñoz wrote:
 
I define PNG in the mapfile.

RG

2010/1/6 Rahkonen Jukka <Jukka.Rahkonen at mmmtike.fi>

> Hi,
>
> Are you sure you are asking for png?  Your client may have a default
> setting for jpeg. The request should look like
>
> http://localhost/cgi-bin/mapserv.exe?map=c
> :\ms4w\osm.map&REQUEST=GetMap&SERVICE=WMS
> &VERSION=1.1.1&WIDTH=1059&HEIGHT=687&LAYERS=default&TRANSPARENT=TRUE
> &FORMAT=image/png
> &BBOX=3430775,6764522,3430932,6764624
> &SRS=epsg:2393&STYLES=
>
> -Jukka Rahkonen-
>
> Valeria Muñoz wrote:
>
>
> Hi!
>
>   i have a problem with the output image of my wms, i define PNG but return
> JPEG.
>
> Source mapfile
>
> OUTPUTFORMAT
>    NAME png
>    DRIVER "AGG/PNG"
>    MIMETYPE 'image/png'
>      IMAGEMODE RGB
>      EXTENSION "png"
>       FORMATOPTION "TRANSPARENT=OFF"
>       FORMATOPTION "INTERLACE=ON"
>  END
>
> source wms mapfile
>
> OUTPUTFORMAT
>    NAME png
>    DRIVER "AGG/PNG"
>    MIMETYPE 'image/png'
>      IMAGEMODE RGB
>      EXTENSION "png"
>       FORMATOPTION "TRANSPARENT=OFF"
>       FORMATOPTION "INTERLACE=ON"
>  END
>
>
> can you help me please?
>
> RG
>
>



More information about the mapserver-users mailing list