comparison src/java/de/intevation/mxd/reader/GdbRasterCatalogLayerReader.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 ef7ca23c4233
children 59e06c405a9a
comparison
equal deleted inserted replaced
73:acbe36fb45e0 74:7eba97e8201b
56 * Reads the Layer content. 56 * Reads the Layer content.
57 * 57 *
58 * @return The layer XML element. 58 * @return The layer XML element.
59 */ 59 */
60 public Element read() 60 public Element read()
61 throws IOException { 61 throws Exception {
62 logger.debug("read()"); 62 logger.debug("read()");
63 Element layerElement; 63 Element layerElement = util.addLayer();
64 try {
65 layerElement = util.addLayer();
66 }
67 catch(Exception e) {
68 e.printStackTrace();
69 return null;
70 }
71 64
72 layerElement.setAttribute("name", layer.getName()); 65 layerElement.setAttribute("name", layer.getName());
73 layerElement.setAttribute("min_scale", 66 layerElement.setAttribute("min_scale",
74 String.valueOf(layer.getMinimumScale())); 67 String.valueOf(layer.getMinimumScale()));
75 layerElement.setAttribute("max_scale", 68 layerElement.setAttribute("max_scale",
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)