comparison src/java/de/intevation/mxd/writer/MapScriptWriter.java @ 200:ecf2f68230a2

Remove all whitespaces from grouplayer name.
author raimund renkert <raimund.renkert@intevation.de>
date Wed, 20 Jul 2011 18:27:32 +0200
parents c56547b228f9
children 123fd9887a4f
comparison
equal deleted inserted replaced
199:c56547b228f9 200:ecf2f68230a2
203 layer.setName(validateString(lname)); 203 layer.setName(validateString(lname));
204 layer.setUnits(units.swigValue()); 204 layer.setUnits(units.swigValue());
205 layer.setMetaData("wms_title", validateString(lname)); 205 layer.setMetaData("wms_title", validateString(lname));
206 if(layerElement.hasAttribute("group")) { 206 if(layerElement.hasAttribute("group")) {
207 String group = layerElement.getAttribute("group"); 207 String group = layerElement.getAttribute("group");
208 layer.setGroup(validateString(group)); 208 group = validateString(group);
209 group = group.replaceAll (" ", "");
210 layer.setGroup(group);
209 } 211 }
210 212
211 //The layer status. 213 //The layer status.
212 String stat = layerElement.getAttribute("status"); 214 String stat = layerElement.getAttribute("status");
213 if (stat.equals("on")) { 215 if (stat.equals("on")) {
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)