[mapserver-users] MapServer 7.0.1 WMS Server wms_getmap_formatlist not working as expected

Rahkonen Jukka (MML) jukka.rahkonen at maanmittauslaitos.fi
Tue Jun 7 02:04:28 PDT 2016


Hi,

I see that you include image/bmp which is not supported outputformat at all. What happens if you leave it out from the formatlist?

-Jukka Rahkonen-


Wright, Simon M. wrote:


Dear All

Has anyone been able to get the wms_getmap_formatlist parameter to work when configuring a map file to define a WMS?

I'm using MapServer 7.0.1 and when I don't include the wms_getmap_formatlist parameter in my .map file the WMS GetCapabilities document reports the following GetMap image formats:

<GetMap>
<Format>image/png</Format>
<Format>image/jpeg</Format>
<Format>image/png; mode=8bit</Format>
<Format>application/x-pdf</Format>
<Format>image/svg+xml</Format>
<Format>image/tiff</Format>
<Format>application/vnd.google-earth.kml+xml</Format>
<Format>application/vnd.google-earth.kmz</Format>
<DCPType>
<HTTP>
<Get>
<OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http:/localhost:8080/cgi-bin/mapserv?map=/vagrant/maps/test-01.map&language=eng&"/>
</Get>
<Post>
<OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http:/localhost:8080/cgi-bin/mapserv?map=/vagrant/maps/test-01.map&language=eng&"/>
</Post>
</HTTP>
</DCPType>
</GetMap>

But when I include the wms_getmap_formatlist parameter in my .map file as follows:

"wms_getmap_formatlist"    "image/bmp, image/png"

no image formats are reported in the WMS GetCapabilities document:

<GetMap>
<DCPType>
<HTTP>
<Get>
<OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http:/localhost:8080/cgi-bin/mapserv?map=/vagrant/maps/test-01.map&language=eng&"/>
</Get>
<Post>
<OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http:/localhost:8080/cgi-bin/mapserv?map=/vagrant/maps/test-01.map&language=eng&"/>
</Post>
</HTTP>
</DCPType>
</GetMap>

I'm seeing the same behaviour when I request both version 1.1.1 and 1.3.0 WMSs.

Many thanks in advance of any help that people can provide.



Best wishes, Simon.

________________________________
This message (and any attachments) is for the recipient only. NERC is subject to the Freedom of Information Act 2000 and the contents of this email and any reply you make may be disclosed by NERC unless it is exempt from release under the Act. Any material supplied to NERC may be stored in an electronic records management system.
________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20160607/37a7fd72/attachment.htm>


More information about the MapServer-users mailing list