Mercurial > mxd2map
diff src/java/de/intevation/mxd/reader/GroupLayerReader.java @ 180:f4eb506499f5
Done some code styling and removed TODOs.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Mon, 11 Jul 2011 12:11:08 +0200 |
parents | 2bf35f0babd0 |
children | 0bde090506f9 |
line wrap: on
line diff
--- a/src/java/de/intevation/mxd/reader/GroupLayerReader.java Fri Jul 08 16:32:05 2011 +0200 +++ b/src/java/de/intevation/mxd/reader/GroupLayerReader.java Mon Jul 11 12:11:08 2011 +0200 @@ -70,7 +70,7 @@ public Element read() throws IOException{ logger.debug("read()"); - Element layerElement = null; + Element layerElement = null; for(int i = 0; i < layer.getCount();i++) { ILayer lay = layer.getLayer(i); try { @@ -81,7 +81,7 @@ if (layerElement == null) { continue; } - layerElement.setAttribute("group", layer.getName()); + layerElement.setAttribute("group", layer.getName()); IFeatureRenderer renderer = ((FeatureLayer)lay).getRenderer(); IRendererReader rreader; @@ -113,7 +113,7 @@ new GdbRasterCatalogLayerReader(lay); gclr.setUtil(util); layerElement = gclr.read(); - layerElement.setAttribute("group", layer.getName()); + layerElement.setAttribute("group", layer.getName()); IFeatureRenderer renderer = ((GdbRasterCatalogLayer)lay).getRenderer(); IRendererReader rreader; @@ -140,18 +140,18 @@ renderer.getClass().toString()); } } - } - catch(Exception e) { - invalidLayerCount++; + } + catch(Exception e) { + invalidLayerCount++; if(i == 0 && (i + 1) == layer.getCount() || invalidLayerCount == layer.getCount()) { throw new IOException( "No valid layer in MXD file." + " Aborting."); } - } - } - return layerElement; + } + } + return layerElement; } } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :