diff 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
line wrap: on
line diff
--- a/src/java/de/intevation/mxd/writer/FillStyleWriter.java	Mon Jul 18 17:17:04 2011 +0200
+++ b/src/java/de/intevation/mxd/writer/FillStyleWriter.java	Wed Jul 20 12:23:57 2011 +0200
@@ -84,6 +84,13 @@
                     if (symbols.getLength() == 1) {
                         writeSimple(symbolElement);
                     }
+                    try {
+                        SymbolWriter sw = new SymbolWriter(this.map, this.cl);
+                        sw.saveSymbolSet(symbolSet);
+                    }
+                    catch(Exception e) {
+                        logger.warn("Could not save symbol set.");
+                    }
                 }
                 else if(nextSym.getTagName().equals("symbol") &&
                    !symbolElement.hasAttribute("hatch") ||
@@ -121,6 +128,13 @@
                 }
                 else {
                     writeSimple(symbolElement);
+                    try {
+                        SymbolWriter sw = new SymbolWriter(this.map, this.cl);
+                        sw.saveSymbolSet(symbolSet);
+                    }
+                    catch(Exception e) {
+                        logger.warn("Could not save symbol set.");
+                    }
                 }
             }
         }
@@ -144,8 +158,14 @@
                     style.setOutlinewidth(0.0);
                 }
             }
+            try {
+                SymbolWriter sw = new SymbolWriter(this.map, this.cl);
+                sw.saveSymbolSet(symbolSet);
+            }
+            catch(Exception e) {
+                logger.warn("Could not save symbol set.");
+            }
         }
-
         return true;
     }
 
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)