Skip to content

Commit

Permalink
Merge branch 'branch-6-0'
Browse files Browse the repository at this point in the history
  • Loading branch information
constantinius committed May 30, 2012
2 parents fd7af49 + 4538f8e commit e8724de
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
11 changes: 11 additions & 0 deletions mapwcs11.c
Expand Up @@ -135,6 +135,17 @@ static char *msWCSGetFormatsList11( mapObj *map, layerObj *layer )
tokens = msStringSplit(value, ' ', &numtokens);
}

/* -------------------------------------------------------------------- */
/* Parse from map.web metadata. */
/* -------------------------------------------------------------------- */

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

/* -------------------------------------------------------------------- */
/* Or generate from all configured raster output formats that */
/* look plausible. */
Expand Down
16 changes: 14 additions & 2 deletions mapwcs20.c
Expand Up @@ -1397,6 +1397,17 @@ static char *msWCSGetFormatsList20( mapObj *map, layerObj *layer )
tokens = msStringSplit(value, ' ', &numtokens);
}

/* -------------------------------------------------------------------- */
/* Parse from map.web metadata. */
/* -------------------------------------------------------------------- */

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

/* -------------------------------------------------------------------- */
/* Or generate from all configured raster output formats that */
/* look plausible. */
Expand Down Expand Up @@ -3180,7 +3191,8 @@ static int msWCSDescribeCoverage20_CoverageDescription(mapObj *map,
/* -------------------------------------------------------------------- */
/* SupportedFormats */
/* -------------------------------------------------------------------- */
{
/* for now, WCS 2.0 does not allow per coverage format definitions */
/*{
xmlNodePtr psSupportedFormats;
char *format_list;
Expand All @@ -3196,7 +3208,7 @@ static int msWCSDescribeCoverage20_CoverageDescription(mapObj *map,
}
msFree(format_list);
}
}*/

/* -------------------------------------------------------------------- */
/* nativeFormat */
Expand Down

0 comments on commit e8724de

Please sign in to comment.