Mercurial > mxd2map
diff src/java/de/intevation/mxd/writer/MapScriptWriter.java @ 132:02df1dbc2166
Remove all whitespaces in layer name.
author | vc11884admin@VC11884.win.bsh.de |
---|---|
date | Mon, 20 Jun 2011 17:54:09 +0200 |
parents | 5991c1f90f91 |
children | acc9e5430177 |
line wrap: on
line diff
--- 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.