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.
________________________________
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to