comparison src/java/de/intevation/mxd/reader/MultiLayerFillSymbolReader.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 b41fcf268827
children 9ea64427ac7e
comparison
equal deleted inserted replaced
73:acbe36fb45e0 74:7eba97e8201b
85 * Reads the symbol attributes. 85 * Reads the symbol attributes.
86 * 86 *
87 * @return The XML node. 87 * @return The XML node.
88 */ 88 */
89 public Element read() 89 public Element read()
90 throws IOException { 90 throws Exception {
91 logger.debug("read()"); 91 logger.debug("read()");
92 for(int i = 0; i < symbol.getLayerCount(); i++) { 92 for(int i = 0; i < symbol.getLayerCount(); i++) {
93 try { 93 ISymbol sym = (ISymbol)symbol.getLayer(i);
94 ISymbol sym = (ISymbol)symbol.getLayer(i);
95 94
96 if(sym instanceof SimpleFillSymbol) { 95 if(sym instanceof SimpleFillSymbol) {
97 ISymbolReader sreader = new SimpleFillSymbolReader(sym); 96 ISymbolReader sreader = new SimpleFillSymbolReader(sym);
98 sreader.setParent(renderer); 97 sreader.setParent(renderer);
99 sreader.setUtil(util); 98 sreader.setUtil(util);
100 sreader.read(); 99 sreader.read();
101 }
102 else {
103 logger.debug("The type of " + sym.getClass().toString() +
104 " is not implemented!");
105 }
106 } 100 }
107 catch(Exception e) { 101 else {
108 e.printStackTrace(); 102 logger.debug("The type of " + sym.getClass().toString() +
109 return null; 103 " is not implemented!");
110 } 104 }
111 } 105 }
112 return renderer; 106 return renderer;
113 } 107 }
114 } 108 }
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)