Mercurial > mxd2map
diff src/java/de/intevation/mxd/reader/PictureMarkerSymbolReader.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 | df4e0946ef02 |
line wrap: on
line diff
--- a/src/java/de/intevation/mxd/reader/PictureMarkerSymbolReader.java Wed Jun 22 12:01:28 2011 +0200 +++ b/src/java/de/intevation/mxd/reader/PictureMarkerSymbolReader.java Wed Jun 22 13:55:22 2011 +0200 @@ -68,8 +68,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 { @@ -79,7 +78,7 @@ } catch (IOException ioe) { logger.warn("Could not read size. Setting size to 1."); - symbolElement.setAttribute("size", "0"); + symbolElement.setAttribute("size", "1"); } try { @@ -88,8 +87,7 @@ String.valueOf(symbol.getXOffset())); } catch(IOException ioe) { - logger.warn("Could not read x-offset. Setting x-offset to 0"); - symbolElement.setAttribute("x_offset", "0"); + logger.warn("Could not read x-offset."); } try { @@ -98,8 +96,7 @@ String.valueOf(symbol.getYOffset())); } catch(IOException ioe) { - logger.warn("Could not read y-offset. Setting y-offset to 0."); - symbolElement.setAttribute("y_offset", "0"); + logger.warn("Could not read y-offset."); } try { @@ -117,7 +114,7 @@ pElem.importPicture(symbol.getPicture()); } catch(IOException ioe) { - logger.warn("Could not read picture. No fallback defined."); + logger.warn("Could not read picture."); } symbolElement.setAttribute("style", "picture"); symbolElement.setAttribute("type", "marker");