comparison src/java/de/intevation/mxd/writer/MapScriptWriter.java @ 243:df4e0946ef02

Added LGPL header.
author Raimund Renkert <rrenkert@intevation.de>
date Tue, 09 Aug 2011 14:24:51 +0200
parents 8aefef8a1626
children 276f63c86f1c
comparison
equal deleted inserted replaced
242:bb25c7a4553e 243:df4e0946ef02
1 /*
2 * Copyright (c) 2011 by Intevation GmbH, Germany <info@intevation.de>
3 *
4 * This file is part of MXD2map.
5 *
6 * This program is free software under the LGPL (>=v2.1)
7 * Read the file LICENCE.txt coming with the software for details
8 * or visit http://www.gnu.org/licenses/ if it does not exist.
9 *
10 * MXD2map has been developed on behalf of the
11 * Bundesamt fuer Seeschifffahrt und Hydrographie (BSH) in Hamburg
12 * by Intevation GmbH.
13 *
14 * Authors:
15 * Raimund Renkert <raimund.renkert@intevation.de>
16 * Bjoern Schilberg <bjoern.schilberg@intevation.de>
17 * Stephan Holl <stephan.holl@intevation.de>
18 */
19
1 package de.intevation.mxd.writer; 20 package de.intevation.mxd.writer;
2 21
3 import org.apache.log4j.Logger; 22 import org.apache.log4j.Logger;
4 23
5 import java.awt.Color; 24 import java.awt.Color;
605 private String validateString (String s) { 624 private String validateString (String s) {
606 if (s.equals("")) { 625 if (s.equals("")) {
607 return ""; 626 return "";
608 } 627 }
609 String tmp = s.trim(); 628 String tmp = s.trim();
610 tmp = tmp.replace ("ö", "oe"); 629 tmp = tmp.replace ("ö", "oe");
611 tmp = tmp.replace ("ä", "ae"); 630 tmp = tmp.replace ("ä", "ae");
612 tmp = tmp.replace ("ü", "ue"); 631 tmp = tmp.replace ("ü", "ue");
613 tmp = tmp.replace ("ß", "ss"); 632 tmp = tmp.replace ("ß", "ss");
614 tmp = tmp.replace ("/", ""); 633 tmp = tmp.replace ("/", "");
615 tmp = tmp.replace (",", ""); 634 tmp = tmp.replace (",", "");
616 if(!s.equals(tmp)) { 635 if(!s.equals(tmp)) {
617 logger.info("Renamed \"" + s + "\" to \"" + tmp + "\"."); 636 logger.info("Renamed \"" + s + "\" to \"" + tmp + "\".");
618 } 637 }
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)