Mercurial > mxd2map
comparison src/java/de/intevation/mxd/reader/MultiLayerMarkerSymbolReader.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 | 6d181c02efce |
children | 83932f18dddc |
comparison
equal
deleted
inserted
replaced
73:acbe36fb45e0 | 74:7eba97e8201b |
---|---|
77 * Reads the symbol attributes. | 77 * Reads the symbol attributes. |
78 * | 78 * |
79 * @return The XML node. | 79 * @return The XML node. |
80 */ | 80 */ |
81 public Element read() | 81 public Element read() |
82 throws IOException { | 82 throws Exception { |
83 logger.debug("read()"); | 83 logger.debug("read()"); |
84 for(int i = 0; i < symbol.getLayerCount(); i++) { | 84 for(int i = 0; i < symbol.getLayerCount(); i++) { |
85 try { | 85 ISymbol sym = (ISymbol)symbol.getLayer(i); |
86 ISymbol sym = (ISymbol)symbol.getLayer(i); | 86 ISymbolReader sreader = new MarkerSymbolReader(sym); |
87 ISymbolReader sreader = new MarkerSymbolReader(sym); | 87 sreader.setParent(renderer); |
88 sreader.setParent(renderer); | 88 sreader.setUtil(util); |
89 sreader.setUtil(util); | 89 sreader.read(); |
90 sreader.read(); | |
91 } | |
92 catch(Exception e) { | |
93 e.printStackTrace(); | |
94 } | |
95 } | 90 } |
96 return renderer; | 91 return renderer; |
97 } | 92 } |
98 } | 93 } |
99 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : | 94 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |