[MXD2map-commits] r293:c2747cec2814

scm-commit at wald.intevation.org scm-commit at wald.intevation.org
Mon Sep 3 17:26:11 CEST 2012


details:   http://hg.intevation.org/geospatial/mxd2map/rev/c2747cec2814

changeset: 293:c2747cec2814

user:      Andre Heinecke <aheinecke at intevation.de>

date:      Mon Sep 03 17:20:11 2012 +0200

description:
Save rotationElement in the symbol attributes as angleBinding


diffstat:

 src/java/de/intevation/mxd/reader/CharacterMarkerSymbolReader.java |  8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diffs (18 lines):

diff -r 6e5fce16b495 -r c2747cec2814 src/java/de/intevation/mxd/reader/CharacterMarkerSymbolReader.java
--- 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",


More information about the MXD2map-commits mailing list