comparison src/java/de/intevation/mxd/writer/MapScriptWriter.java @ 207:448a2fd085e0

Fixed the group and layer name concatenation.
author raimund renkert <raimund.renkert@intevation.de>
date Thu, 21 Jul 2011 17:28:52 +0200
parents 07b991b940ab
children e672f5134d6e
comparison
equal deleted inserted replaced
206:4ebba3c52924 207:448a2fd085e0
203 if(layerElement.hasAttribute("group")) { 203 if(layerElement.hasAttribute("group")) {
204 group = layerElement.getAttribute("group"); 204 group = layerElement.getAttribute("group");
205 group = validateString(group); 205 group = validateString(group);
206 group = group.replaceAll (" ", ""); 206 group = group.replaceAll (" ", "");
207 layer.setGroup(group); 207 layer.setGroup(group);
208 group = group + ".";
208 } 209 }
209 String lname = layerElement.getAttribute("name"); 210 String lname = layerElement.getAttribute("name");
210 lname = lname.replaceAll(" ", ""); 211 lname = lname.replaceAll(" ", "");
211 lname = group + "." + lname; 212 lname = group + lname;
212 layer.setName(validateString(lname)); 213 layer.setName(validateString(lname));
213 layer.setUnits(units.swigValue()); 214 layer.setUnits(units.swigValue());
214 layer.setMetaData("wms_title", validateString(lname)); 215 layer.setMetaData("wms_title", validateString(lname));
215 216
216 217
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)