Mercurial > mxd2map
comparison src/java/de/intevation/mxd/writer/LineStyleWriter.java @ 147:03daf386f19a
Manage symbol name for line symbols.
author | vc11884admin@VC11884.win.bsh.de |
---|---|
date | Wed, 29 Jun 2011 17:36:07 +0200 |
parents | b2c5a66022f1 |
children | 9fd61f4ac0e3 |
comparison
equal
deleted
inserted
replaced
145:b2c5a66022f1 | 147:03daf386f19a |
---|---|
88 } | 88 } |
89 String type = symbolElement.getAttribute("type"); | 89 String type = symbolElement.getAttribute("type"); |
90 if(type.equals("marker")) { | 90 if(type.equals("marker")) { |
91 SymbolWriter sw = new SymbolWriter(this.map, this.cl); | 91 SymbolWriter sw = new SymbolWriter(this.map, this.cl); |
92 sw.write(symbolElement); | 92 sw.write(symbolElement); |
93 String name = symbolElement.getAttribute("name"); | |
94 style.setSymbolByName(map, name); | |
95 symbolObj sym = symbolSet.getSymbolByName(name); | |
93 } | 96 } |
94 String name = symbolElement.getAttribute("name"); | |
95 style.setSymbolByName(map, name); | |
96 symbolObj sym = symbolSet.getSymbolByName(name); | |
97 | 97 |
98 //The following lines are for dashed and/or dotted lines. | 98 //The following lines are for dashed and/or dotted lines. |
99 if(symbolElement.hasAttribute("linestyle")) { | 99 if(symbolElement.hasAttribute("linestyle")) { |
100 String ls = symbolElement.getAttribute("linestyle"); | 100 String ls = symbolElement.getAttribute("linestyle"); |
101 double[] vals; | 101 double[] vals; |
156 } | 156 } |
157 catch(NumberFormatException nfe) { | 157 catch(NumberFormatException nfe) { |
158 logger.warn("Could not write PATTERN."); | 158 logger.warn("Could not write PATTERN."); |
159 } | 159 } |
160 } | 160 } |
161 | |
162 | |
163 | |
164 | |
165 return false; | 161 return false; |
166 } | 162 } |
167 } | 163 } |
168 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : | 164 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |