Skip to content

Commit

Permalink
fix order of wms <Style> element in capabilities (#4529)
Browse files Browse the repository at this point in the history
  • Loading branch information
tbonfort committed Dec 11, 2012
1 parent 5e3bc56 commit b6abf97
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions mapwms.c
Expand Up @@ -2275,6 +2275,13 @@ int msDumpLayer(mapObj *map, layerObj *lp, int nVersion, const char *script_url_
"xlink:type=\"simple\" xlink:href=\"%s\"/>\n ",
MS_FALSE, MS_FALSE, MS_FALSE, MS_TRUE, MS_TRUE,
NULL, NULL, NULL, NULL, NULL, " ");

/* print Min/Max ScaleDenominator */
if (nVersion < OWS_1_3_0)
msWMSPrintScaleHint(" ", lp->minscaledenom, lp->maxscaledenom, map->resolution);
else
msWMSPrintScaleDenominator(" ", lp->minscaledenom, lp->maxscaledenom);


/* The LegendURL reside in a style. The Web Map Context spec already */
/* included the support on this in mapserver. However, it is not in the */
Expand Down Expand Up @@ -2551,11 +2558,6 @@ int msDumpLayer(mapObj *map, layerObj *lp, int nVersion, const char *script_url_

msFree(pszMetadataName);

if (nVersion < OWS_1_3_0)
msWMSPrintScaleHint(" ", lp->minscaledenom, lp->maxscaledenom, map->resolution);
else
msWMSPrintScaleDenominator(" ", lp->minscaledenom, lp->maxscaledenom);

if ( grouplayer == MS_FALSE )
msIO_printf("%s </Layer>\n", indent);

Expand Down

0 comments on commit b6abf97

Please sign in to comment.