comparison src/java/de/intevation/mxd/Converter.java @ 86:e19c5eb43099

Instantiate the mapscript writer before loading the MXD file.
author Raimund Renkert <rrenkert@intevation.de>
date Tue, 31 May 2011 15:37:19 +0200
parents f0c02ff120d6
children c285ed08b72c
comparison
equal deleted inserted replaced
85:04ea8a4972ff 86:e19c5eb43099
100 e.printStackTrace (); 100 e.printStackTrace ();
101 } 101 }
102 } 102 }
103 103
104 IReader reader = new MXDReader(); 104 IReader reader = new MXDReader();
105 IWriter writer = new MapScriptWriter(maptemplate, mapfile);
106
105 reader.init(); 107 reader.init();
106 reader.setFilename(mxdfile); 108 reader.setFilename(mxdfile);
107 reader.read(); 109 reader.read();
108 110
109 IWriter writer = new MapScriptWriter(maptemplate, mapfile);
110 writer.write(reader.getMapDocument()); 111 writer.write(reader.getMapDocument());
111 reader.shutdown(); 112 reader.shutdown();
112 } 113 }
113 catch(IOException e) { 114 catch(Exception e) {
114 e.printStackTrace(); 115 e.printStackTrace();
115 } 116 }
116 } 117 }
117 118
118 private static String readProperty (String key) 119 private static String readProperty (String key)
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)