[MXD2map-commits] r305:ebf974199309

scm-commit at wald.intevation.org scm-commit at wald.intevation.org
Wed Sep 5 17:19:25 CEST 2012


details:   http://hg.intevation.org/geospatial/mxd2map/rev/ebf974199309

changeset: 305:ebf974199309

user:      Andre Heinecke <aheinecke at intevation.de>

date:      Wed Sep 05 17:19:19 2012 +0200

description:
Only write group if layer is part of a group


diffstat:

 ChangeLog                                              |  5 +++++
 src/java/de/intevation/mxd/writer/MapScriptWriter.java |  2 +-
 2 files changed, 6 insertions(+), 1 deletions(-)

diffs (26 lines):

diff -r 50031b1ae8e6 -r ebf974199309 ChangeLog
--- 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 at intevation.de>
+
+	* src/java/de/intevation/mxd/writer/MapScriptWriter.java:
+	Only write GROUP Attribute if it exists
+
 2012-09-05  Andre Heinecke <aheinecke at intevation.de>
 
 	* src/java/de/intevation/mxd/writer/MapScriptWriter.java:
diff -r 50031b1ae8e6 -r ebf974199309 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);


More information about the MXD2map-commits mailing list