comparison src/java/de/intevation/mxd/reader/FeatureLayerReader.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
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",
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)