Mercurial > mxd2map
comparison src/java/de/intevation/mxd/reader/PictureLineSymbolReader.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 | 5ed9e720b6cd |
children | 83932f18dddc |
comparison
equal
deleted
inserted
replaced
73:acbe36fb45e0 | 74:7eba97e8201b |
---|---|
84 * Reads the symbol attributes. | 84 * Reads the symbol attributes. |
85 * | 85 * |
86 * @return The XML node. | 86 * @return The XML node. |
87 */ | 87 */ |
88 public Element read() | 88 public Element read() |
89 throws IOException { | 89 throws Exception { |
90 logger.debug("read()"); | 90 logger.debug("read()"); |
91 Element symbolElement; | 91 Element symbolElement = util.addSymbol(renderer); |
92 try { | |
93 symbolElement = util.addSymbol(renderer); | |
94 } | |
95 catch(Exception e) { | |
96 e.printStackTrace(); | |
97 return null; | |
98 } | |
99 | 92 |
100 symbolElement.setAttribute("name", symbol.getNameString()); | 93 symbolElement.setAttribute("name", symbol.getNameString()); |
101 symbolElement.setAttribute("style", "picture"); | 94 symbolElement.setAttribute("style", "picture"); |
102 if(symbol.getColor() instanceof IRgbColor) { | 95 if(symbol.getColor() instanceof IRgbColor) { |
103 IRgbColor color = (IRgbColor)symbol.getColor(); | 96 IRgbColor color = (IRgbColor)symbol.getColor(); |