[mapserver-users] wms output problem

Valeria Muñoz valemunoz at gmail.com
Wed Jan 6 06:10:00 PST 2010


i will do that thanks a lot.

Saludos

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

> 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
> >
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100106/de0ec95e/attachment.htm>


More information about the MapServer-users mailing list