Mercurial > mxd2map
diff src/java/de/intevation/mxd/writer/LineStyleWriter.java @ 141:8f30f7e802d6
Manage symbol names and symbol comparison.
author | vc11884admin@VC11884.win.bsh.de |
---|---|
date | Mon, 27 Jun 2011 16:07:13 +0200 |
parents | 7632850b9520 |
children | b2c5a66022f1 |
line wrap: on
line diff
--- a/src/java/de/intevation/mxd/writer/LineStyleWriter.java Thu Jun 23 16:59:29 2011 +0200 +++ b/src/java/de/intevation/mxd/writer/LineStyleWriter.java Mon Jun 27 16:07:13 2011 +0200 @@ -69,7 +69,13 @@ style.setSize((int)Double.parseDouble( symbolElement.getAttribute("size"))); } + String type = symbolElement.getAttribute("type"); + if(type.equals("marker")) { + SymbolWriter sw = new SymbolWriter(this.map, this.cl); + sw.write(symbolElement); + } String name = symbolElement.getAttribute("name"); + style.setSymbolByName(map, name); symbolObj sym = symbolSet.getSymbolByName(name); //The following lines are for dashed and/or dotted lines. @@ -136,13 +142,9 @@ } } - String type = symbolElement.getAttribute("type"); - if(type.equals("marker")) { - style.setSymbolByName(map, name); - SymbolWriter sw = new SymbolWriter(this.map, this.cl); - sw.write(symbolElement); - } + + return false; } }