Mercurial > mxd2map
changeset 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 | ea3fde77ea48 |
files | ChangeLog src/java/de/intevation/mxd/writer/MapScriptWriter.java |
diffstat | 2 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Wed Sep 05 17:18:18 2012 +0200 +++ b/ChangeLog Wed Sep 05 17:19:19 2012 +0200 @@ -1,3 +1,8 @@ +2012-09-05 Andre Heinecke <aheinecke@intevation.de> + + * src/java/de/intevation/mxd/writer/MapScriptWriter.java: + Only write GROUP Attribute if it exists + 2012-09-05 Andre Heinecke <aheinecke@intevation.de> * src/java/de/intevation/mxd/writer/MapScriptWriter.java:
--- a/src/java/de/intevation/mxd/writer/MapScriptWriter.java Wed Sep 05 17:18:18 2012 +0200 +++ b/src/java/de/intevation/mxd/writer/MapScriptWriter.java Wed Sep 05 17:19:19 2012 +0200 @@ -289,9 +289,9 @@ ulgroup = ulgroup.substring(1); } layer.setName(ulname); - layer.setGroup(ulgroup); layer.setUnits(units.swigValue()); if(!group.equals("")) { + layer.setGroup(ulgroup); layer.setMetaData("wms_layer_group", group); } layer.setMetaData("wms_title", ulname);