[mapserver-users] Fwd: Constraining WMS output type
Jan Hartmann
j.l.h.hartmann at uva.nl
Mon Mar 12 08:08:25 PDT 2012
"wms-getmap_formatlist" works, but if I specify "image/jpeg,image/png;
mode=8bit,image/gif", qgis doesn't offer png as an output format
anymore. It just doen't know 8-bits png. I saw they are working on it:
https://github.com/qgis/Quantum-GIS/commit/3a2c0e9872270fbd62d6bfcd9149d9d2a16c09cf
So, it's a qgis problem. The metadata item is nice to know, though.
Thanks,
Jan
On 03/12/2012 03:03 PM, Rahkonen Jukka wrote:
> Hi,
>
> I would have a try by defining a 8-bit png outputformat for img/png MIME type and using wms_getmap_formatlist in the metadata. How have you defined the png8 now in your mapfile?
>
> -Jukka Rahkonen-
> ________________________________
> Jan Hartmann wrote:
>
>
>> Hi all,
>> Is there a way to restrict the output types Mapserver offers as a WMS service, e.g. only png 8-bits? In QGIS, when I choose "png" as output for a WMS layer, I always get back png24 rasters, even if I explicitly specify png8 as outputtype in the mapfile.
>> Not sure if this would be according to the WMS specs, though.
>> Jan
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120312/c875f1c8/attachment.htm>
More information about the MapServer-users
mailing list