comparison src/java/de/intevation/mxd/writer/FillStyleWriter.java @ 184:c79c3c6fc99a

Always save a symbol set, use the mapfile name as prefix for the symbol set and use the mapfile path to save the symbol set.
author raimund renkert <raimund.renkert@intevation.de>
date Wed, 20 Jul 2011 12:23:57 +0200
parents 0bde090506f9
children b54afdbc5892
comparison
equal deleted inserted replaced
183:fe6dbfc86144 184:c79c3c6fc99a
82 } 82 }
83 writeOutline(nextSym); 83 writeOutline(nextSym);
84 if (symbols.getLength() == 1) { 84 if (symbols.getLength() == 1) {
85 writeSimple(symbolElement); 85 writeSimple(symbolElement);
86 } 86 }
87 try {
88 SymbolWriter sw = new SymbolWriter(this.map, this.cl);
89 sw.saveSymbolSet(symbolSet);
90 }
91 catch(Exception e) {
92 logger.warn("Could not save symbol set.");
93 }
87 } 94 }
88 else if(nextSym.getTagName().equals("symbol") && 95 else if(nextSym.getTagName().equals("symbol") &&
89 !symbolElement.hasAttribute("hatch") || 96 !symbolElement.hasAttribute("hatch") ||
90 (i == 1 && type.equals("marker"))) { 97 (i == 1 && type.equals("marker"))) {
91 double gap = 0; 98 double gap = 0;
119 writeMarker(nextSym, -1); 126 writeMarker(nextSym, -1);
120 } 127 }
121 } 128 }
122 else { 129 else {
123 writeSimple(symbolElement); 130 writeSimple(symbolElement);
131 try {
132 SymbolWriter sw = new SymbolWriter(this.map, this.cl);
133 sw.saveSymbolSet(symbolSet);
134 }
135 catch(Exception e) {
136 logger.warn("Could not save symbol set.");
137 }
124 } 138 }
125 } 139 }
126 } 140 }
127 else { 141 else {
128 writeSimple(symbolElement); 142 writeSimple(symbolElement);
142 catch(NumberFormatException nfe) { 156 catch(NumberFormatException nfe) {
143 logger.warn("Error setting outline width."); 157 logger.warn("Error setting outline width.");
144 style.setOutlinewidth(0.0); 158 style.setOutlinewidth(0.0);
145 } 159 }
146 } 160 }
147 } 161 try {
148 162 SymbolWriter sw = new SymbolWriter(this.map, this.cl);
163 sw.saveSymbolSet(symbolSet);
164 }
165 catch(Exception e) {
166 logger.warn("Could not save symbol set.");
167 }
168 }
149 return true; 169 return true;
150 } 170 }
151 171
152 /** 172 /**
153 * Write the outline for a polygon. 173 * Write the outline for a polygon.
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)