comparison src/java/de/intevation/mxd/writer/MapScriptWriter.java @ 124:0f5819732288

Set label text as class name in mapfile.
author Raimund Renkert <rrenkert@intevation.de>
date Fri, 17 Jun 2011 14:13:25 +0200
parents 11d63bf00326
children ff0354265a7d
comparison
equal deleted inserted replaced
123:3c792458a716 124:0f5819732288
206 //Create all found class objects and write the symbols and styles for 206 //Create all found class objects and write the symbols and styles for
207 //each class. 207 //each class.
208 for(int i = 0; i < list.getLength(); i++) { 208 for(int i = 0; i < list.getLength(); i++) {
209 Element classElement = (Element)list.item(i); 209 Element classElement = (Element)list.item(i);
210 classObj co = new classObj(layer); 210 classObj co = new classObj(layer);
211 String name = classElement.getAttribute("name"); 211 String name = classElement.getAttribute("label");
212 if (name.equals("")) { 212 if (name.equals("")) {
213 name = layerElement.getAttribute("name"); 213 name = layerElement.getAttribute("name");
214 if (list.getLength() > 1) { 214 if (list.getLength() > 1) {
215 name += "-" + i; 215 name += "-" + i;
216 } 216 }
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)