comparison 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
comparison
equal deleted inserted replaced
238:e672f5134d6e 239:8aefef8a1626
609 String tmp = s.trim(); 609 String tmp = s.trim();
610 tmp = tmp.replace ("ö", "oe"); 610 tmp = tmp.replace ("ö", "oe");
611 tmp = tmp.replace ("ä", "ae"); 611 tmp = tmp.replace ("ä", "ae");
612 tmp = tmp.replace ("ü", "ue"); 612 tmp = tmp.replace ("ü", "ue");
613 tmp = tmp.replace ("ß", "ss"); 613 tmp = tmp.replace ("ß", "ss");
614 tmp = tmp.replace ("/", "");
615 tmp = tmp.replace (",", "");
616 if(!s.equals(tmp)) {
617 logger.info("Renamed \"" + s + "\" to \"" + tmp + "\".");
618 }
614 return tmp; 619 return tmp;
615 } 620 }
616 } 621 }
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)