changeset 293:c2747cec2814

Save rotationElement in the symbol attributes as angleBinding
author Andre Heinecke <aheinecke@intevation.de>
date Mon, 03 Sep 2012 17:20:11 +0200
parents 6e5fce16b495
children 8079b2acca67
files src/java/de/intevation/mxd/reader/CharacterMarkerSymbolReader.java
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/java/de/intevation/mxd/reader/CharacterMarkerSymbolReader.java	Fri Aug 31 16:13:19 2012 +0200
+++ b/src/java/de/intevation/mxd/reader/CharacterMarkerSymbolReader.java	Mon Sep 03 17:20:11 2012 +0200
@@ -92,6 +92,14 @@
         logger.debug("read()");
         Element symbolElement = util.addSymbol(parent);
 
+        // Save the rotationField value of the Element
+        if (!parent.getAttribute("rotationField").isEmpty()) {
+            logger.debug("Setting angleBinding to rotationField: " +
+                    parent.getAttribute("rotationField"));
+            symbolElement.setAttribute("angleBinding",
+                    parent.getAttribute("rotationField"));
+        }
+
         try {
             symbolElement.setAttribute(
                 "angle",
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)