[mapserver-users] How to change output from selectOutputFormat('PNG32')?
Rahkonen Jukka (Tike)
jukka.rahkonen at mmmtike.fi
Fri Feb 7 07:02:21 PST 2014
Hi,
Unfortunately I do not know your script.
In a basic WMS usage the available formats are announced in GetCapabilities (hmm, seems to be version 5.6.5...)
http://demo.mapserver.org/cgi-bin/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=Getcapabilities
So if this is the default 8-bit png
http://demo.mapserver.org/cgi-bin/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&BBOX=-180,-90,180,90&SRS=EPSG:4326&WIDTH=953&HEIGHT=480&LAYERS=bluemarble,continents,country_bounds,cities&STYLES=&FORMAT=image/png&TRANSPARENT=true
Then this one using image/png; mode=24bit gives it as 24-bit
http://demo.mapserver.org/cgi-bin/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&BBOX=-180,-90,180,90&SRS=EPSG:4326&WIDTH=953&HEIGHT=480&LAYERS=bluemarble,continents,country_bounds,cities&STYLES=&FORMAT=image/png;%20mode=24bit&TRANSPARENT=true
-Jukka Rahkonen-
Robert R. Raiz wrote:
Hello,
Basically I would want to get a resulting png8 files because png32 produces a larger file (in KiB).
Can someone clear this out for me? If I change PNG32 to PNG8 is returns the same thing (a png32). If I comment this line in the script I still get PNG32.
Where does it get the image format from? I thought it is from the mapfile but I cannot seem to change this output. I would need some help in where to look first in order to find the issue.
Running shp2img on the mapfile returns the desired outcome, a png8
Thank you all,
--
Raiz Roland Robert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20140207/db331419/attachment.htm>
More information about the MapServer-users
mailing list