Opened 19 years ago

Closed 17 years ago

#1379 closed defect (fixed)

[WMS Server] Duplicate GetFeatureInfo formats

Reported by: jmckenna@… Owned by: mapserverbugs
Priority: high Milestone:
Component: WMS Server Version: 4.6
Severity: normal Keywords:
Cc:

Description

Testing with MapServer 4.6.0beta3, if i specify the following metadata in my
wms-server mapfile:

   "wms_feature_info_mime_type" "text/plain"

the following is returned by GetCapabilities on this server:

    <GetFeatureInfo>
      <Format>text/plain</Format>
      <Format>text/plain</Format>
      <Format>application/vnd.ogc.gml</Format>

Change History (2)

comment:1 by dmorissette, 19 years ago

Two things need to be done:
1- Avoid the duplicates in capabilities
2- Make sure that the type "wms_feature_info_mime_type" handler takes precedence
over the default text/plain handler

comment:2 by tomkralidis, 17 years ago

Resolution: fixed
Status: newclosed

Fixed. mapwms.c now:

  • checks if wms_feature_info_mime_type (pszMimeType) exists
    • if it does, check if value is "text/plain"
      • write out text/plain out ONCE either way
Note: See TracTickets for help on using tickets.