Permalink
Browse files

Add <ogc:PropertyName></ogc:PropertyName> tags in SLD label (#4921)

Added in <label></label> when we are using values from an attribute
(ie property in OGC terms). In MapServer this is the only way to get
a value for a label when using the labelitem parameter.
  • Loading branch information...
yjacolin-bot authored and tbonfort committed May 7, 2014
1 parent 3241921 commit d2867f7943a321096a4007e5f791cf30f9db044e
Showing with 1 addition and 1 deletion.
  1. +1 −1 mapogcsld.c
View
@@ -3833,7 +3833,7 @@ char *msSLDGenerateTextSLD(classObj *psClass, layerObj *psLayer, int nVersion)
snprintf(szTmp, sizeof(szTmp), "<%sTextSymbolizer>\n", sNameSpace);
pszSLD = msStringConcatenate(pszSLD, szTmp);
- snprintf(szTmp, sizeof(szTmp), "<%sLabel>%s</%sLabel>\n", sNameSpace,
+ snprintf(szTmp, sizeof(szTmp), "<%sLabel><ogc:PropertyName>%s</ogc:PropertyName></%sLabel>\n", sNameSpace,
psLayer->labelitem, sNameSpace);
pszSLD = msStringConcatenate(pszSLD, szTmp);

0 comments on commit d2867f7

Please sign in to comment.