comparison src/java/de/intevation/mxd/writer/MapScriptWriter.java @ 299:c4fb04f6422f

Write GROUP into grouped maps
author Andre Heinecke <aheinecke@intevation.de>
date Wed, 05 Sep 2012 16:13:39 +0200
parents 1cbc278c956b
children 215ae6199b95
comparison
equal deleted inserted replaced
298:1cbc278c956b 299:c4fb04f6422f
285 group = cleangroup; 285 group = cleangroup;
286 } 286 }
287 String lname = layerElement.getAttribute("name"); 287 String lname = layerElement.getAttribute("name");
288 lname = msutils.removeSpecialChars(lname); 288 lname = msutils.removeSpecialChars(lname);
289 lname = msutils.replaceUmlauts(lname); 289 lname = msutils.replaceUmlauts(lname);
290 String ulname = group.replaceAll("/", ".") + "." + lname; 290 String ulgroup = group.replaceAll("/", ".");
291 String ulname = ulgroup + "." + lname;
291 if(ulname.startsWith(".")) { 292 if(ulname.startsWith(".")) {
292 ulname = ulname.substring(1); 293 ulname = ulname.substring(1);
293 } 294 }
295 if(ulgroup.startsWith(".")) {
296 ulgroup = ulgroup.substring(1);
297 }
294 layer.setName(ulname); 298 layer.setName(ulname);
299 layer.setGroup(ulgroup);
295 layer.setUnits(units.swigValue()); 300 layer.setUnits(units.swigValue());
296 if(!group.equals("")) { 301 if(!group.equals("")) {
297 layer.setMetaData("wms_layer_group", group); 302 layer.setMetaData("wms_layer_group", group);
298 } 303 }
299 layer.setMetaData("wms_title", ulname); 304 layer.setMetaData("wms_title", ulname);
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)