[MXD2map-commits] r245:2eeeae07aaa2

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Aug 9 17:51:03 CEST 2011


details:   http://hg.intevation.org/geospatial/mxd2map/rev/2eeeae07aaa2

changeset: 245:2eeeae07aaa2

user:      raimund renkert <raimund.renkert at intevation.de>

date:      Tue Aug 09 17:42:31 2011 +0200

description:
Set the group attribute to the correct wms metadata.


diffstat:

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

diffs (29 lines):

diff -r 276f63c86f1c -r 2eeeae07aaa2 ChangeLog
--- a/ChangeLog	Tue Aug 09 17:27:18 2011 +0200
+++ b/ChangeLog	Tue Aug 09 17:42:31 2011 +0200
@@ -1,3 +1,8 @@
+2011-08-09  Raimund Renkert  <raimund.renkert at intevation.de>
+
+	* src/java/de/intevation/mxd/writer/MapScriptWriter.java:
+	  Set the group attribute to the correct wms metadata.
+
 2011-08-09  Raimund Renkert  <raimund.renkert at intevation.de>
 
 	* src/java/de/intevation/mxd/reader/MXDReader.java:
diff -r 276f63c86f1c -r 2eeeae07aaa2 src/java/de/intevation/mxd/writer/MapScriptWriter.java
--- a/src/java/de/intevation/mxd/writer/MapScriptWriter.java	Tue Aug 09 17:27:18 2011 +0200
+++ b/src/java/de/intevation/mxd/writer/MapScriptWriter.java	Tue Aug 09 17:42:31 2011 +0200
@@ -239,11 +239,9 @@
             layer.setName(ulname);
             layer.setUnits(units.swigValue());
 	    if(!group.equals("")) {
-                layer.setMetaData("wms_title", group + "/" + lname);
+                layer.setMetaData("wms_layer_group", group);
 	    }
-	    else {
-	    	layer.setMetaData("wms_title", lname);
-	    }
+            layer.setMetaData("wms_title", ulname);
 
             //The layer status.
             String stat = layerElement.getAttribute("status");


More information about the MXD2map-commits mailing list