Skip to content

Commit

Permalink
Add <ogc:PropertyName></ogc:PropertyName> tags in SLD label (#4921)
Browse files Browse the repository at this point in the history
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 authored and tbonfort committed Sep 2, 2014
1 parent 3241921 commit d2867f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mapogcsld.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit d2867f7

Please sign in to comment.