changeset 207:448a2fd085e0

Fixed the group and layer name concatenation.
author raimund renkert <raimund.renkert@intevation.de>
date Thu, 21 Jul 2011 17:28:52 +0200 (2011-07-21)
parents 4ebba3c52924
children 0c58db91311c
files ChangeLog src/java/de/intevation/mxd/writer/MapScriptWriter.java
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu Jul 21 16:56:28 2011 +0200
+++ b/ChangeLog	Thu Jul 21 17:28:52 2011 +0200
@@ -1,3 +1,8 @@
+2011-07-21  Raimund Renkert  <raimund.renkert@intevation.de>
+
+	* src/java/de/intevation/mxd/writer/MapScriptWriter.java:
+	  Fixed the group and layer name concatenation.
+
 2011-07-21  Raimund Renkert  <raimund.renkert@intevation.de>
 
 	* doku/source/restrictions.txt:
--- a/src/java/de/intevation/mxd/writer/MapScriptWriter.java	Thu Jul 21 16:56:28 2011 +0200
+++ b/src/java/de/intevation/mxd/writer/MapScriptWriter.java	Thu Jul 21 17:28:52 2011 +0200
@@ -205,10 +205,11 @@
 		group = validateString(group);
 		group = group.replaceAll (" ", "");
                 layer.setGroup(group);
+		group = group + ".";
             }
 	    String lname = layerElement.getAttribute("name");
             lname = lname.replaceAll(" ", "");
-	    lname = group + "." + lname;
+	    lname = group + lname;
             layer.setName(validateString(lname));
             layer.setUnits(units.swigValue());
             layer.setMetaData("wms_title", validateString(lname));
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)