comparison src/java/de/intevation/mxd/reader/MultiLayerLineSymbolReader.java @ 74:7eba97e8201b

Catch all exceptions in the MXDReader.
author Raimund Renkert <rrenkert@intevation.de>
date Thu, 26 May 2011 18:11:29 +0200
parents 260748e3d08f
children 83932f18dddc
comparison
equal deleted inserted replaced
73:acbe36fb45e0 74:7eba97e8201b
87 * Reads the symbol attributes. 87 * Reads the symbol attributes.
88 * 88 *
89 * @return The XML node. 89 * @return The XML node.
90 */ 90 */
91 public Element read() 91 public Element read()
92 throws IOException { 92 throws Exception {
93 logger.debug("read()"); 93 logger.debug("read()");
94 for(int i = 0; i < symbol.getLayerCount(); i++) { 94 for(int i = 0; i < symbol.getLayerCount(); i++) {
95 try { 95 ISymbol sym = (ISymbol)symbol.getLayer(i);
96 ISymbol sym = (ISymbol)symbol.getLayer(i); 96 ISymbolReader sreader = new LineSymbolReader(sym);
97 ISymbolReader sreader = new LineSymbolReader(sym); 97 sreader.setParent(renderer);
98 sreader.setParent(renderer); 98 sreader.setUtil(util);
99 sreader.setUtil(util); 99 sreader.read();
100 sreader.read();
101 }
102 catch(Exception e) {
103 e.printStackTrace();
104 return null;
105 }
106 } 100 }
107 return renderer; 101 return renderer;
108 } 102 }
109 } 103 }
110 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : 104 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)