diff src/java/de/intevation/mxd/writer/MapScriptWriter.java @ 239:8aefef8a1626

Remove special characters from layername and classname.
author raimund renkert <raimund.renkert@intevation.de>
date Mon, 08 Aug 2011 17:09:06 +0200
parents e672f5134d6e
children df4e0946ef02
line wrap: on
line diff
--- a/src/java/de/intevation/mxd/writer/MapScriptWriter.java	Mon Aug 08 17:06:17 2011 +0200
+++ b/src/java/de/intevation/mxd/writer/MapScriptWriter.java	Mon Aug 08 17:09:06 2011 +0200
@@ -611,6 +611,11 @@
         tmp = tmp.replace ("ä", "ae");
         tmp = tmp.replace ("ü", "ue");
         tmp = tmp.replace ("ß", "ss");
+	tmp = tmp.replace ("/", "");
+	tmp = tmp.replace (",", "");
+	if(!s.equals(tmp)) {
+	    logger.info("Renamed \"" + s + "\" to \"" + tmp + "\".");
+	}
         return tmp;
     }
 }
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)