comparison src/java/de/intevation/mxd/writer/MapScriptWriter.java @ 132:02df1dbc2166

Remove all whitespaces in layer name.
author vc11884admin@VC11884.win.bsh.de
date Mon, 20 Jun 2011 17:54:09 +0200
parents 5991c1f90f91
children acc9e5430177
comparison
equal deleted inserted replaced
131:cd18c61cbcf6 132:02df1dbc2166
145 for(int i = 0; i < list.getLength(); i++) { 145 for(int i = 0; i < list.getLength(); i++) {
146 Element layerElement = (Element)list.item(i); 146 Element layerElement = (Element)list.item(i);
147 layerObj layer = new layerObj(map); 147 layerObj layer = new layerObj(map);
148 148
149 //The layer name. 149 //The layer name.
150 layer.setName(layerElement.getAttribute("name")); 150 String lname = layerElement.getAttribute("name");
151 lname = lname.replaceAll(" ", "");
152 layer.setName(lname);
151 layer.setMetaData("wms_title", layerElement.getAttribute("name")); 153 layer.setMetaData("wms_title", layerElement.getAttribute("name"));
152 154
153 //The layer status. 155 //The layer status.
154 String stat = layerElement.getAttribute("status"); 156 String stat = layerElement.getAttribute("status");
155 if (stat.equals("on")) { 157 if (stat.equals("on")) {
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)