Mercurial > mxd2map
changeset 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 (2011-07-20) |
parents | 415101ff1ac2 |
children | ea7858d75459 0965f8af70fa |
files | ChangeLog src/java/de/intevation/mxd/writer/MapScriptWriter.java |
diffstat | 2 files changed, 8 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Wed Jul 20 12:32:08 2011 +0200 +++ b/ChangeLog Wed Jul 20 12:40:11 2011 +0200 @@ -1,3 +1,8 @@ +2011-07-20 Raimund Renkert <raimund.renkert@intevation.de> + + * src/java/de/intevation/mxd/reader/MapScriptWriter.java: + Add quotes to expression if the value is a string. + 2011-07-20 Raimund Renkert <raimund.renkert@intevation.de> * src/java/de/intevation/mxd/UniqueValueRendererReader.java:
--- 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 += "\")"; } } }