diff src/java/de/intevation/mxd/writer/MapScriptWriter.java @ 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
parents 07b991b940ab
children e672f5134d6e
line wrap: on
line diff
--- 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)