Mercurial > mxd2map
diff src/java/de/intevation/mxd/reader/MultiLayerLineSymbolReader.java @ 78:df17d4c2f9eb
Merged in Raimunds changes
author | Stephan Holl <stephan.holl@intevation.de> |
---|---|
date | Thu, 26 May 2011 16:13:50 +0200 |
parents | 260748e3d08f |
children | 7eba97e8201b |
line wrap: on
line diff
--- a/src/java/de/intevation/mxd/reader/MultiLayerLineSymbolReader.java Thu May 26 16:12:38 2011 +0200 +++ b/src/java/de/intevation/mxd/reader/MultiLayerLineSymbolReader.java Thu May 26 16:13:50 2011 +0200 @@ -94,41 +94,10 @@ for(int i = 0; i < symbol.getLayerCount(); i++) { try { ISymbol sym = (ISymbol)symbol.getLayer(i); - - if(sym instanceof SimpleLineSymbol) { - ISymbolReader sreader = new SimpleLineSymbolReader(sym); - sreader.setParent(renderer); - sreader.setUtil(util); - sreader.read(); - } - else if(sym instanceof MarkerLineSymbol) { - ISymbolReader sreader = new MarkerLineSymbolReader(sym); - sreader.setParent(renderer); - sreader.setUtil(util); - sreader.read(); - } - else if(sym instanceof PictureLineSymbol) { - ISymbolReader sreader = new PictureLineSymbolReader(sym); - sreader.setParent(renderer); - sreader.setUtil(util); - sreader.read(); - } - else if(sym instanceof CartographicLineSymbol) { - ISymbolReader sreader = new CartoLineSymbolReader(sym); - sreader.setParent(renderer); - sreader.setUtil(util); - sreader.read(); - } - else if(sym instanceof HashLineSymbol) { - ISymbolReader sreader = new HashLineSymbolReader(sym); - sreader.setParent(renderer); - sreader.setUtil(util); - sreader.read(); - } - else { - logger.debug("The type of " + sym.getClass().toString() + - " is not implemented!"); - } + ISymbolReader sreader = new LineSymbolReader(sym); + sreader.setParent(renderer); + sreader.setUtil(util); + sreader.read(); } catch(Exception e) { e.printStackTrace();