Ticket #1149 (closed defect: fixed)

Opened 8 years ago

Last modified 8 years ago

[WMS] output one SRS element per EPSG in mapwms.c

Reported by: tomkralidis Owned by: jlacroix
Priority: high Milestone: 4.6 release
Component: WMS Server Version: unspecified
Severity: normal Keywords:
Cc:

Description

This originated out of bug 1148, w.r.t. deprecated behaviour of elements with
space delimited lists of values, in favour of one element per list value.

If I issue OGC:WMS 1.1.1 GetCapabilities against latest CVS, SRSs are output one
per element at the LAYER level, i.e.:

<SRS>EPSG:4326</SRS>
<SRS>EPSG:42304</SRS>

..this behaviour should be put forth at the ROOT LAYER level, i.e. the
MAP/WEB/METADATA.  Currently, the element:

/WMT_MS_Capabilities/Capability/Layer/SRS

is output as:

<SRS>EPSG:4326 EPSG:42304</SRS>

..whereas we should change to:

<SRS>EPSG:4326</SRS>
<SRS>EPSG:42304</SRS>

..so the same behaviour in mapwms.c, line 1202 which is made at the LAYER level
should be replicated at the ROOT LAYER level, around line 1857.

Change History

Changed 8 years ago by dmorissette

  • milestone set to 4.6 release
ouch that's an ugly one!  Of course we should make sure that both cases share
the same code (i.e. by moving the code to a function)

Changed 8 years ago by jlacroix

  • cc mapserver-bugs@… added
  • owner changed from mapserverbugs to jlacroix@…
Taking care of this one

Changed 8 years ago by jlacroix

  • status changed from new to closed
  • resolution set to fixed
I added a function in mapows.c to fix that bug.

int msOWSPrintEncodeParamList(FILE *stream, const char *name, 
                              const char *value, int action_if_not_found, 
                              char delimiter, const char *startTag, 
                              const char *endTag, const char *format, 
                              const char *default_value) 

This function parse a string and separate different element with "delimiter".
Other than that it works exactly like msOWSPrintEncodeMetadataList.

Marking as FIXED
Note: See TracTickets for help on using tickets.