diff src/java/de/intevation/mxd/reader/SimpleFillSymbolReader.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 0bde090506f9
line wrap: on
line diff
--- a/src/java/de/intevation/mxd/reader/SimpleFillSymbolReader.java	Wed Jun 22 12:01:28 2011 +0200
+++ b/src/java/de/intevation/mxd/reader/SimpleFillSymbolReader.java	Wed Jun 22 13:55:22 2011 +0200
@@ -77,8 +77,7 @@
         }
         catch(IOException ioe) {
             logger.warn(
-                "Could not read fill style." +
-                " Setting fill style to \"empty\"");
+                "Could not read fill style.");
             style = -1;
         }
 
@@ -98,7 +97,7 @@
             case esriSimpleFillStyle.esriSFSDiagonalCross:
                 symbolElement.setAttribute("fillstyle", "diagonalcross");
                 break;
-            default: symbolElement.setAttribute("fillstyle", "empty");
+            default: break;
         }
 
         try {
@@ -125,12 +124,7 @@
             }
         }
         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 {
@@ -148,7 +142,7 @@
             }
         }
         catch(Exception e) {
-            logger.warn("Could not read line symbol. No fallback defined.");
+            logger.warn("Could not read line symbol.");
         }
 
         return symbolElement;
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)