Mercurial > mxd2map
diff src/java/de/intevation/mxd/Converter.java @ 41:60ed2164035a
Introduced MapScript writer.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Thu, 14 Apr 2011 11:31:29 +0200 |
parents | 7a927921eb6c |
children | ef7ca23c4233 |
line wrap: on
line diff
--- a/src/java/de/intevation/mxd/Converter.java Thu Apr 14 11:25:57 2011 +0200 +++ b/src/java/de/intevation/mxd/Converter.java Thu Apr 14 11:31:29 2011 +0200 @@ -10,7 +10,8 @@ import de.intevation.mxd.reader.IReader; import de.intevation.mxd.reader.MXDReader; - +import de.intevation.mxd.writer.IWriter; +import de.intevation.mxd.writer.MapScriptWriter; /** * The entry point of the MXD converter tool. * @@ -68,6 +69,7 @@ try{ IReader reader = new MXDReader(); + IWriter writer = new MapScriptWriter(); reader.init(); String path = System.getProperty("mxd.file"); @@ -79,6 +81,7 @@ reader.setFilename(path); reader.read(); + writer.write(reader.getMapDocument()); reader.shutdown(); } catch(IOException e){