diff src/java/de/intevation/mxd/reader/SimpleLineSymbolReader.java @ 62:e468cf8701ea

Prepared the converter to handle and write line symbols.
author Raimund Renkert <rrenkert@intevation.de>
date Tue, 24 May 2011 14:16:25 +0200
parents e00deee347a5
children 5ed9e720b6cd
line wrap: on
line diff
--- a/src/java/de/intevation/mxd/reader/SimpleLineSymbolReader.java	Mon May 23 13:16:42 2011 +0200
+++ b/src/java/de/intevation/mxd/reader/SimpleLineSymbolReader.java	Tue May 24 14:16:25 2011 +0200
@@ -83,6 +83,7 @@
         }
 
         symbolElement.setAttribute("name", symbol.getNameString());
+        symbolElement.setAttribute("style", "line");
         symbolElement.setAttribute("type", "simple");
         if(symbol.getColor() instanceof IRgbColor) {
             IRgbColor color = (IRgbColor)symbol.getColor();
@@ -107,16 +108,16 @@
         int style = symbol.getStyle();
         switch(style) {
             case esriSimpleLineStyle.esriSLSSolid:
-                    symbolElement.setAttribute("style", "solid"); break;
+                    symbolElement.setAttribute("linestyle", "solid"); break;
             case esriSimpleLineStyle.esriSLSDash:
-                    symbolElement.setAttribute("style", "dash"); break;
+                    symbolElement.setAttribute("linestyle", "dash"); break;
             case esriSimpleLineStyle.esriSLSDot:
-                    symbolElement.setAttribute("style", "dot"); break;
+                    symbolElement.setAttribute("linestyle", "dot"); break;
             case esriSimpleLineStyle.esriSLSDashDot:
-                    symbolElement.setAttribute("style", "dashdot"); break;
+                    symbolElement.setAttribute("linestyle", "dashdot"); break;
             case esriSimpleLineStyle.esriSLSDashDotDot:
-                    symbolElement.setAttribute("style", "dashdotdot"); break;
-            default: symbolElement.setAttribute ("style", "none");
+                    symbolElement.setAttribute("linestyle", "dashdotdot"); break;
+            default: symbolElement.setAttribute ("linestyle", "none");
         }
         return symbolElement;
     }
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)