Permalink
Browse files

correct floating point format for SLD Gap/InitialGap

  • Loading branch information...
tbonfort committed Dec 8, 2014
1 parent a616107 commit 8c3dc41d946579ded63e99a107419f4215a0d7f4
Showing with 2 additions and 2 deletions.
  1. +2 −2 mapogcsld.c
View
@@ -3543,10 +3543,10 @@ char *msSLDGenerateLineSLD(styleObj *psStyle, layerObj *psLayer, int nVersion)
if(nVersion >= OWS_1_1_0) {
if(psStyle->gap > 0) {
- snprintf(szTmp, sizeof(szTmp), "<%sGap>%f</%sGap>\n", sNameSpace,psStyle->gap,sNameSpace);
+ snprintf(szTmp, sizeof(szTmp), "<%sGap>%.2f</%sGap>\n", sNameSpace,psStyle->gap,sNameSpace);
}
if(psStyle->initialgap > 0) {
- snprintf(szTmp, sizeof(szTmp), "<%sInitialGap>%f</%sInitialGap>\n", sNameSpace,psStyle->initialgap,sNameSpace);
+ snprintf(szTmp, sizeof(szTmp), "<%sInitialGap>%.2f</%sInitialGap>\n", sNameSpace,psStyle->initialgap,sNameSpace);
}
}

0 comments on commit 8c3dc41

Please sign in to comment.