Mercurial > mxd2map
comparison src/java/de/intevation/mxd/reader/FeatureLayerReader.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 | e468cf8701ea |
children | 59e06c405a9a |
comparison
equal
deleted
inserted
replaced
73:acbe36fb45e0 | 74:7eba97e8201b |
---|---|
60 * Reads the Layer content. | 60 * Reads the Layer content. |
61 * | 61 * |
62 * @return The layer XML element. | 62 * @return The layer XML element. |
63 */ | 63 */ |
64 public Element read() | 64 public Element read() |
65 throws IOException { | 65 throws Exception { |
66 logger.debug("read()"); | 66 logger.debug("read()"); |
67 Element layerElement; | 67 Element layerElement = util.addLayer(); |
68 try { | |
69 layerElement = util.addLayer(); | |
70 } | |
71 catch(Exception e) { | |
72 e.printStackTrace(); | |
73 return null; | |
74 } | |
75 | 68 |
76 layerElement.setAttribute("name", layer.getName()); | 69 layerElement.setAttribute("name", layer.getName()); |
77 layerElement.setAttribute("min_scale", | 70 layerElement.setAttribute("min_scale", |
78 String.valueOf(layer.getMinimumScale())); | 71 String.valueOf(layer.getMinimumScale())); |
79 layerElement.setAttribute("max_scale", | 72 layerElement.setAttribute("max_scale", |