Mercurial > mxd2map
diff src/java/de/intevation/mxd/reader/SimpleMarkerSymbolReader.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/SimpleMarkerSymbolReader.java Wed Jun 22 12:01:28 2011 +0200 +++ b/src/java/de/intevation/mxd/reader/SimpleMarkerSymbolReader.java Wed Jun 22 13:55:22 2011 +0200 @@ -77,10 +77,7 @@ symbolElement.setAttribute("style", "point"); } catch(IOException ioe) { - logger.warn( - "Could not read marker style." + - " Setting marker style to point."); - symbolElement.setAttribute("style", "point"); + logger.warn("Could not read marker style."); } try { @@ -107,12 +104,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 { @@ -132,9 +124,7 @@ } catch(IOException ioe) { logger.warn( - "Could not read outline size." + - " Setting outline size to 1."); - symbolElement.setAttribute("outline_size", "1"); + "Could not read outline size."); } try { @@ -165,14 +155,7 @@ } } catch(IOException ioe) { - logger.warn( - "Could not read outline color." + - " Setting outline color to black with no transparency."); - Color black = new Color(0, 0, 0); - symbolElement.setAttribute( - "outline_color", - String.valueOf(black.getRGB())); - symbolElement.setAttribute("outline_transparency", "-1"); + logger.warn("Could not read outline color."); } try { @@ -181,8 +164,7 @@ String.valueOf(symbol.getAngle())); } catch(IOException ioe) { - logger.warn("Could not read angle. Setting angle to 0."); - symbolElement.setAttribute("angle", "0"); + logger.warn("Could not read angle."); } try { @@ -191,8 +173,7 @@ symbol.getXOffset() + "," + symbol.getYOffset()); } catch(IOException ioe) { - logger.warn("Could not read offset. Setting offset to 0."); - symbolElement.setAttribute("offset", "0"); + logger.warn("Could not read offset."); } symbolElement.setAttribute("type", "marker");