Mercurial > mxd2map
comparison src/java/de/intevation/mxd/reader/MXDReader.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 | b41fcf268827 |
children | 163d474165b0 |
comparison
equal
deleted
inserted
replaced
73:acbe36fb45e0 | 74:7eba97e8201b |
---|---|
118 } | 118 } |
119 | 119 |
120 for(int i = 0; i < map.getLayerCount();i++) { | 120 for(int i = 0; i < map.getLayerCount();i++) { |
121 ILayer layer = map.getLayer(i); | 121 ILayer layer = map.getLayer(i); |
122 try { | 122 try { |
123 //TODO Implement wrapper for renderer reader | |
123 if (layer instanceof FeatureLayer) { | 124 if (layer instanceof FeatureLayer) { |
124 FeatureLayerReader lr = new FeatureLayerReader(layer); | 125 FeatureLayerReader lr = new FeatureLayerReader(layer); |
125 lr.setUtil(util); | 126 lr.setUtil(util); |
126 Element layerElement = lr.read(); | 127 Element layerElement = lr.read(); |
127 IFeatureRenderer renderer = | 128 IFeatureRenderer renderer = |
182 } | 183 } |
183 } | 184 } |
184 } | 185 } |
185 catch(Exception e) { | 186 catch(Exception e) { |
186 e.printStackTrace(); | 187 e.printStackTrace(); |
188 return false; | |
187 } | 189 } |
188 } | 190 } |
189 util.print(); | 191 util.print(); |
190 } | 192 } |
191 return true; | 193 return true; |