[MXD2map-commits] r239:8aefef8a1626

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Aug 9 12:06:19 CEST 2011


details:   http://hg.intevation.org/geospatial/mxd2map/rev/8aefef8a1626

changeset: 239:8aefef8a1626

user:      raimund renkert <raimund.renkert at intevation.de>

date:      Mon Aug 08 17:09:06 2011 +0200

description:
Remove special characters from layername and classname.


diffstat:

 ChangeLog                                              |  5 +++++
 src/java/de/intevation/mxd/writer/MapScriptWriter.java |  5 +++++
 2 files changed, 10 insertions(+), 0 deletions(-)

diffs (27 lines):

diff -r e672f5134d6e -r 8aefef8a1626 ChangeLog
--- a/ChangeLog	Mon Aug 08 17:06:17 2011 +0200
+++ b/ChangeLog	Mon Aug 08 17:09:06 2011 +0200
@@ -1,3 +1,8 @@
+2011-08-08  Raimund Renkert  <raimund.renkert at intevation.de>
+
+	* src/java/de/intevation/mxd/writer/MapScriptWriter.java:
+	  Remove special characters from layername and classname.
+
 2011-08-08  Raimund Renkert  <raimund.renkert at intevation.de>
 
 	* src/java/de/intevation/mxd/writer/MapScriptWriter.java:
diff -r e672f5134d6e -r 8aefef8a1626 src/java/de/intevation/mxd/writer/MapScriptWriter.java
--- 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;
     }
 }


More information about the MXD2map-commits mailing list