Mercurial > mxd2map
diff src/java/de/intevation/mxd/writer/MapScriptWriter.java @ 169:d7c8493cb345
Manage filter and expressions for sde layers.
author | vc11884admin@VC11884.win.bsh.de |
---|---|
date | Tue, 05 Jul 2011 17:52:24 +0200 |
parents | 7ed49420ee5a |
children | b9ee44070056 |
line wrap: on
line diff
--- a/src/java/de/intevation/mxd/writer/MapScriptWriter.java Tue Jul 05 17:22:03 2011 +0200 +++ b/src/java/de/intevation/mxd/writer/MapScriptWriter.java Tue Jul 05 17:52:24 2011 +0200 @@ -238,7 +238,13 @@ } else { prefix = layerElement.getAttribute("data_source"); + if(layerElement.hasAttribute("definition_query") && + !layerElement.getAttribute("definition_query").equals("")) { + layer.setFilter("where " + + layerElement.getAttribute("definition_query")); + } } + } layer.setTemplate("PleaseInsertAValidTemplateForGFI"); //Write classes. @@ -323,7 +329,7 @@ else { expression += " > " + ce.getAttribute("min_value"); } - expression += " AND ["; + expression += " AND [" + pre; expression += ce.getAttribute("expression_field_0")+ "]"; } expression += " " + ce.getAttribute("expression_operator");