comparison src/java/de/intevation/mxd/writer/MapScriptWriter.java @ 245:2eeeae07aaa2

Set the group attribute to the correct wms metadata.
author raimund renkert <raimund.renkert@intevation.de>
date Tue, 09 Aug 2011 17:42:31 +0200
parents 276f63c86f1c
children 87e92debc53f
comparison
equal deleted inserted replaced
244:276f63c86f1c 245:2eeeae07aaa2
237 ulname = ulname.substring(1); 237 ulname = ulname.substring(1);
238 } 238 }
239 layer.setName(ulname); 239 layer.setName(ulname);
240 layer.setUnits(units.swigValue()); 240 layer.setUnits(units.swigValue());
241 if(!group.equals("")) { 241 if(!group.equals("")) {
242 layer.setMetaData("wms_title", group + "/" + lname); 242 layer.setMetaData("wms_layer_group", group);
243 } 243 }
244 else { 244 layer.setMetaData("wms_title", ulname);
245 layer.setMetaData("wms_title", lname);
246 }
247 245
248 //The layer status. 246 //The layer status.
249 String stat = layerElement.getAttribute("status"); 247 String stat = layerElement.getAttribute("status");
250 if (stat.equals("on")) { 248 if (stat.equals("on")) {
251 layer.setStatus(1); 249 layer.setStatus(1);
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)