Mercurial > mxd2map
comparison src/java/de/intevation/mxd/writer/MapScriptWriter.java @ 305:ebf974199309
Only write group if layer is part of a group
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Wed, 05 Sep 2012 17:19:19 +0200 |
parents | 50031b1ae8e6 |
children | f9e53dcc7424 |
comparison
equal
deleted
inserted
replaced
304:50031b1ae8e6 | 305:ebf974199309 |
---|---|
287 } | 287 } |
288 if(ulgroup.startsWith(".")) { | 288 if(ulgroup.startsWith(".")) { |
289 ulgroup = ulgroup.substring(1); | 289 ulgroup = ulgroup.substring(1); |
290 } | 290 } |
291 layer.setName(ulname); | 291 layer.setName(ulname); |
292 layer.setGroup(ulgroup); | |
293 layer.setUnits(units.swigValue()); | 292 layer.setUnits(units.swigValue()); |
294 if(!group.equals("")) { | 293 if(!group.equals("")) { |
294 layer.setGroup(ulgroup); | |
295 layer.setMetaData("wms_layer_group", group); | 295 layer.setMetaData("wms_layer_group", group); |
296 } | 296 } |
297 layer.setMetaData("wms_title", ulname); | 297 layer.setMetaData("wms_title", ulname); |
298 | 298 |
299 // Projection metadata. | 299 // Projection metadata. |