comparison src/java/de/intevation/mxd/writer/SymbolWriter.java @ 174:707f13cfba74

Improved the commandline arguments and save the mapfile in the correct directory.
author raimund.renkert@intevation.de
date Wed, 06 Jul 2011 18:38:40 +0200
parents b2c5a66022f1
children f11d13940626
comparison
equal deleted inserted replaced
173:0a1435aa33d8 174:707f13cfba74
11 import edu.umn.gis.mapscript.symbolSetObj; 11 import edu.umn.gis.mapscript.symbolSetObj;
12 import edu.umn.gis.mapscript.lineObj; 12 import edu.umn.gis.mapscript.lineObj;
13 import edu.umn.gis.mapscript.pointObj; 13 import edu.umn.gis.mapscript.pointObj;
14 import edu.umn.gis.mapscript.MS_SYMBOL_TYPE; 14 import edu.umn.gis.mapscript.MS_SYMBOL_TYPE;
15 15
16 import java.io.File;
16 17
17 /** 18 /**
18 * The interface to the mapfile writer. 19 * The interface to the mapfile writer.
19 * 20 *
20 * @author <a href="mailto:raimund.renkert@intevation.de">Raimund Renkert</a> 21 * @author <a href="mailto:raimund.renkert@intevation.de">Raimund Renkert</a>
155 throws Exception { 156 throws Exception {
156 String path = this.map.getMappath(); 157 String path = this.map.getMappath();
157 if(path.equals("")) { 158 if(path.equals("")) {
158 return; 159 return;
159 } 160 }
161
162 if (path.endsWith(".map")) {
163 path = path.substring(0, path.lastIndexOf(File.separator) + 1);
164 path += "symbols.sym";
165 }
160 else { 166 else {
161 path += "symbols.sym"; 167 path += "symbols.sym";
162 } 168 }
163 symbols.save(path); 169 symbols.save(path);
164 } 170 }
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)