Mercurial > mxd2map
diff src/java/de/intevation/mxd/writer/SymbolWriter.java @ 90:82a1f39214fd
Added method to save the symbolset.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Tue, 31 May 2011 19:04:55 +0200 |
parents | 7d4cf2db43f1 |
children | 3993b5adf67c |
line wrap: on
line diff
--- a/src/java/de/intevation/mxd/writer/SymbolWriter.java Tue May 31 18:33:54 2011 +0200 +++ b/src/java/de/intevation/mxd/writer/SymbolWriter.java Tue May 31 19:04:55 2011 +0200 @@ -1,6 +1,10 @@ package de.intevation.mxd.writer; import org.apache.log4j.Logger; +import java.io.File; +import java.io.FileInputStream; +import java.io.BufferedInputStream; +import java.util.Properties; import org.w3c.dom.Element; @@ -61,6 +65,9 @@ else { return false; } + + saveSymbolSet(symbolSet); + return true; } @@ -108,5 +115,17 @@ return false; } } + + private void saveSymbolSet(symbolSetObj symbols) + throws Exception { + String path = "";// TODO Get the correct path. Mapfile path or symbolset path + if(path.equals("")) { + return; + } + else if(path.endsWith(".map")) { + path.replace(".map", ".sym"); + } + symbols.save(path); + } } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :