Mercurial > mxd2map
diff src/java/de/intevation/mxd/writer/MapScriptWriter.java @ 186:1391f911ee39
Add quotes to an expression if the value is a string.
author | raimund renkert <raimund.renkert@intevation.de> |
---|---|
date | Wed, 20 Jul 2011 12:40:11 +0200 |
parents | 0bde090506f9 |
children | 0965f8af70fa |
line wrap: on
line diff
--- a/src/java/de/intevation/mxd/writer/MapScriptWriter.java Wed Jul 20 12:32:08 2011 +0200 +++ b/src/java/de/intevation/mxd/writer/MapScriptWriter.java Wed Jul 20 12:40:11 2011 +0200 @@ -546,12 +546,12 @@ expression += ce.getAttribute("expression_field_" + i); expression += "]\""; expression += " " + ce.getAttribute("expression_operator"); - expression += " " + ce.getAttribute("value_" + i); + expression += " \"" + ce.getAttribute("value_" + i); if (i < count - 1) { - expression += " AND "; + expression += "\" AND "; } else { - expression += ")"; + expression += "\")"; } } }