Mercurial > mxd2map
comparison 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 |
comparison
equal
deleted
inserted
replaced
185:415101ff1ac2 | 186:1391f911ee39 |
---|---|
544 } | 544 } |
545 expression += "\"[" + pre; | 545 expression += "\"[" + pre; |
546 expression += ce.getAttribute("expression_field_" + i); | 546 expression += ce.getAttribute("expression_field_" + i); |
547 expression += "]\""; | 547 expression += "]\""; |
548 expression += " " + ce.getAttribute("expression_operator"); | 548 expression += " " + ce.getAttribute("expression_operator"); |
549 expression += " " + ce.getAttribute("value_" + i); | 549 expression += " \"" + ce.getAttribute("value_" + i); |
550 if (i < count - 1) { | 550 if (i < count - 1) { |
551 expression += " AND "; | 551 expression += "\" AND "; |
552 } | 552 } |
553 else { | 553 else { |
554 expression += ")"; | 554 expression += "\")"; |
555 } | 555 } |
556 } | 556 } |
557 } | 557 } |
558 } | 558 } |
559 return expression; | 559 return expression; |