comparison src/java/de/intevation/mxd/reader/MXDReader.java @ 310:be441fa4bed0

Throw an exception in case reading Raster layer fails
author Andre Heinecke <aheinecke@intevation.de>
date Fri, 14 Sep 2012 11:50:40 +0200
parents a9684178cb29
children 503d3a453a04
comparison
equal deleted inserted replaced
309:e8021f3e411a 310:be441fa4bed0
255 else if(layer instanceof RasterLayer) { 255 else if(layer instanceof RasterLayer) {
256 RasterLayerReader lr = 256 RasterLayerReader lr =
257 new RasterLayerReader(layer); 257 new RasterLayerReader(layer);
258 lr.setUtil(util); 258 lr.setUtil(util);
259 Element layerElement = lr.read(); 259 Element layerElement = lr.read();
260 if(layerElement == null) {
261 throw new IOException ("Error reading RasterLayer.");
262 }
260 /* TODO implement support for classes in Raster Layers 263 /* TODO implement support for classes in Raster Layers
261 IRasterRenderer renderer = 264 IRasterRenderer renderer =
262 ((RasterLayer)layer).getRenderer(); 265 ((RasterLayer)layer).getRenderer();
263 IRendererReader rreader; 266 IRendererReader rreader;
264 if(renderer instanceof SimpleRenderer) { 267 if(renderer instanceof SimpleRenderer) {
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)