diff src/java/de/intevation/mxd/reader/SimpleLineSymbolReader.java @ 135:a4ab239509f1

Updated the default values and reader error handling.
author Raimund Renkert <rrenkert@intevation.de>
date Wed, 22 Jun 2011 13:55:22 +0200
parents fb93f20478cc
children 7b1433d3b574
line wrap: on
line diff
--- a/src/java/de/intevation/mxd/reader/SimpleLineSymbolReader.java	Wed Jun 22 12:01:28 2011 +0200
+++ b/src/java/de/intevation/mxd/reader/SimpleLineSymbolReader.java	Wed Jun 22 13:55:22 2011 +0200
@@ -92,20 +92,14 @@
             }
         }
         catch(IOException ioe) {
-            logger.warn(
-                "Could not read color." +
-                " Setting color to black with no transparency.");
-            Color black = new Color(0, 0, 0);
-            symbolElement.setAttribute("color", String.valueOf(black.getRGB()));
-            symbolElement.setAttribute("transparency", "-1");
+            logger.warn("Could not read color.");
         }
 
         try {
             symbolElement.setAttribute("width", String.valueOf(symbol.getWidth()));
         }
         catch(IOException ioe) {
-            logger.warn("Could not read width. Setting width to 1.");
-            symbolElement.setAttribute("width", "1");
+            logger.warn("Could not read width.");
         }
 
         int style;
@@ -113,9 +107,7 @@
            style = symbol.getStyle();
         }
         catch(IOException ioe) {
-            logger.warn(
-                "Could not read line style." +
-                " Setting line style to \"none\".");
+            logger.warn("Could not read line style.");
             style = -1;
         }
         switch(style) {
@@ -129,7 +121,7 @@
                     symbolElement.setAttribute("linestyle", "dashdot"); break;
             case esriSimpleLineStyle.esriSLSDashDotDot:
                     symbolElement.setAttribute("linestyle", "dashdotdot"); break;
-            default: symbolElement.setAttribute ("linestyle", "none");
+            default: break;
         }
 
         symbolElement.setAttribute("type", "line");
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)