Skip to content
Permalink
Browse files

Fixed bug in format enumeration. The map.web.metadata key wcs_formats…

… is now also taken into account for each layer (in WCS 1.1).
  • Loading branch information...
constantinius committed May 30, 2012
1 parent 4538f8e commit eaddf28bc44aeb40dc6ace2ad8b05a470a9215c8
Showing with 2 additions and 4 deletions.
  1. +1 −2 mapwcs11.c
  2. +1 −2 mapwcs20.c
@@ -134,8 +134,7 @@ static char *msWCSGetFormatsList11( mapObj *map, layerObj *layer )
/* Parse from map.web metadata. */
/* -------------------------------------------------------------------- */

else if(layer == NULL
&& (value = msOWSGetEncodeMetadata( &(map->web.metadata), "CO", "formats",
else if((value = msOWSGetEncodeMetadata( &(map->web.metadata), "CO", "formats",
NULL)) != NULL )
{
tokens = msStringSplit(value, ' ', &numtokens);
@@ -1507,8 +1507,7 @@ static char *msWCSGetFormatsList20( mapObj *map, layerObj *layer )
/* Parse from map.web metadata. */
/* -------------------------------------------------------------------- */

else if(layer == NULL
&& (value = msOWSGetEncodeMetadata( &(map->web.metadata), "CO", "formats",
else if((value = msOWSGetEncodeMetadata( &(map->web.metadata), "CO", "formats",
NULL)) != NULL )
{
tokens = msStringSplit(value, ' ', &numtokens);

0 comments on commit eaddf28

Please sign in to comment.
You can’t perform that action at this time.