comparison src/java/de/intevation/mxd/reader/GdbRasterCatalogLayerReader.java @ 79:5becdfe6ebae

merged with raimunds stuff
author Stephan Holl <stephan.holl@intevation.de>
date Fri, 27 May 2011 12:54:55 +0200
parents 7eba97e8201b
children 59e06c405a9a
comparison
equal deleted inserted replaced
78:df17d4c2f9eb 79:5becdfe6ebae
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)