changeset 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 2bf35f0babd0
files ChangeLog src/java/de/intevation/mxd/writer/LineStyleWriter.java
diffstat 2 files changed, 9 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Mon Jun 27 18:22:21 2011 +0200
+++ b/ChangeLog	Wed Jun 29 17:36:07 2011 +0200
@@ -1,3 +1,9 @@
+2011-06-29  Raimund Renkert  <raimund.renkert@intevation.de>
+
+	* src/java/de/intevation/mxd/writer/LineStyleWriter.java:
+	  A symbol name is written to the mapfile only if it is a marker
+	  symbol.
+
 2011-06-27  Raimund Renkert  <raimund.renkert@intevation.de>
 
 	* src/java/de/intevation/mxd/writer/FillStyleWriter.java,
--- a/src/java/de/intevation/mxd/writer/LineStyleWriter.java	Mon Jun 27 18:22:21 2011 +0200
+++ b/src/java/de/intevation/mxd/writer/LineStyleWriter.java	Wed Jun 29 17:36:07 2011 +0200
@@ -90,10 +90,10 @@
         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);
         }
-        String name = symbolElement.getAttribute("name");
-        style.setSymbolByName(map, name);
-        symbolObj sym = symbolSet.getSymbolByName(name);
 
         //The following lines are for dashed and/or dotted lines.
         if(symbolElement.hasAttribute("linestyle")) {
@@ -158,10 +158,6 @@
                 logger.warn("Could not write PATTERN.");
             }
         }
-
-
-
-
         return false;
     }
 }
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)