comparison src/java/de/intevation/mxd/reader/SimpleMarkerSymbolReader.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 9ea64427ac7e
comparison
equal deleted inserted replaced
73:acbe36fb45e0 74:7eba97e8201b
51 * Reads the symbol attributes. 51 * Reads the symbol attributes.
52 * 52 *
53 * @return The XML node. 53 * @return The XML node.
54 */ 54 */
55 public Element read() 55 public Element read()
56 throws IOException { 56 throws Exception {
57 logger.debug("read()"); 57 logger.debug("read()");
58 Element symbolElement; 58 Element symbolElement = util.addSymbol(parent);
59 try {
60 symbolElement = util.addSymbol(parent);
61 }
62 catch(Exception e) {
63 e.printStackTrace();
64 return null;
65 }
66 59
67 symbolElement.setAttribute("name", symbol.getNameString()); 60 symbolElement.setAttribute("name", symbol.getNameString());
68 if(symbol.getStyle() == esriSimpleMarkerStyle.esriSMSCircle) 61 if(symbol.getStyle() == esriSimpleMarkerStyle.esriSMSCircle)
69 symbolElement.setAttribute("style", "point"); 62 symbolElement.setAttribute("style", "point");
70 63
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)