comparison src/java/de/intevation/mxd/reader/UniqueValueRendererReader.java @ 134:acc9e5430177

Handle SDE connection attributes and expressions.
author vc11884admin@VC11884.win.bsh.de
date Wed, 22 Jun 2011 12:01:28 +0200
parents 6c3d880db7c5
children 1623c8c99135
comparison
equal deleted inserted replaced
133:6b80d2c7536e 134:acc9e5430177
82 for(int i = 0; i < count - 1; i++) { 82 for(int i = 0; i < count - 1; i++) {
83 Element rendererElement = util.addRenderer(layer); 83 Element rendererElement = util.addRenderer(layer);
84 84
85 try { 85 try {
86 String value = renderer.getValue(i); 86 String value = renderer.getValue(i);
87 value = value.replaceAll(" ", "");
88 if(value.indexOf(",") > 0) {
89 int j = 0;
90 while(value.indexOf(",") > 0) {
91 String v = value.substring(0, value.indexOf(","));
92 rendererElement.setAttribute("value_" + j, v);
93 value = value.substring(
94 value.indexOf(",") + 1,
95 value.length());
96 j++;
97 }
98 rendererElement.setAttribute("value_" + j, value);
99 }
100 else {
101 rendererElement.setAttribute("value", value);
102 }
103
104 value = renderer.getValue(i);
87 rendererElement.setAttribute("name", renderer.esri_getClass(i)); 105 rendererElement.setAttribute("name", renderer.esri_getClass(i));
88 rendererElement.setAttribute("description", 106 rendererElement.setAttribute("description",
89 renderer.getDescription(value)); 107 renderer.getDescription(value));
90 rendererElement.setAttribute("value", value); 108
91 rendererElement.setAttribute("label", renderer.getLabel(value)); 109 rendererElement.setAttribute("label", renderer.getLabel(value));
92 rendererElement.setAttribute( 110 rendererElement.setAttribute(
93 "field_count", 111 "field_count",
94 String.valueOf(renderer.getFieldCount())); 112 String.valueOf(renderer.getFieldCount()));
95 for(int j = 0; j < renderer.getFieldCount(); j++) { 113 for(int j = 0; j < renderer.getFieldCount(); j++) {
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)