changeset 132:02df1dbc2166

Remove all whitespaces in layer name.
author vc11884admin@VC11884.win.bsh.de
date Mon, 20 Jun 2011 17:54:09 +0200
parents cd18c61cbcf6
children 6b80d2c7536e
files ChangeLog src/java/de/intevation/mxd/writer/MapScriptWriter.java
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Mon Jun 20 17:41:55 2011 +0200
+++ b/ChangeLog	Mon Jun 20 17:54:09 2011 +0200
@@ -1,3 +1,8 @@
+2011-06-20  Raimund Renkert  <raimund.renkert@intevation.de>
+
+	* src/java/de/intevation/mxd/writer/MapscriptWriter.java:
+	  Remove all whitespaces in layer name.
+
 2011-06-20  Raimund Renkert  <raimund.renkert@intevation.de>
 
 	* src/java/de/intevation/mxd/writer/FillStyleWriter.java,
--- a/src/java/de/intevation/mxd/writer/MapScriptWriter.java	Mon Jun 20 17:41:55 2011 +0200
+++ b/src/java/de/intevation/mxd/writer/MapScriptWriter.java	Mon Jun 20 17:54:09 2011 +0200
@@ -147,7 +147,9 @@
             layerObj layer = new layerObj(map);
 
             //The layer name.
-            layer.setName(layerElement.getAttribute("name"));
+	    String lname = layerElement.getAttribute("name");
+	    lname = lname.replaceAll(" ", "");
+            layer.setName(lname);
             layer.setMetaData("wms_title", layerElement.getAttribute("name"));
 
             //The layer status.
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)