[MXD2map-commits] r294:8079b2acca67

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/8079b2acca67

changeset: 294:8079b2acca67

user:      Andre Heinecke <aheinecke at intevation.de>

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

description:
Add RotationElement attribute that saves which element
should be used for angle calculation


diffstat:

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

diffs (19 lines):

diff -r c2747cec2814 -r 8079b2acca67 src/java/de/intevation/mxd/reader/SimpleRendererReader.java
--- a/src/java/de/intevation/mxd/reader/SimpleRendererReader.java	Mon Sep 03 17:20:11 2012 +0200
+++ b/src/java/de/intevation/mxd/reader/SimpleRendererReader.java	Mon Sep 03 17:20:48 2012 +0200
@@ -116,6 +116,15 @@
         }
 
         try {
+            rendererElement.setAttribute("rotationField", renderer.getRotationField());
+            logger.debug("Rotation is: " + renderer.getRotationField());
+        }
+        catch(IOException ioe) {
+            logger.warn("Could not read rorationField.");
+        }
+
+
+        try {
             symbol = renderer.getSymbol();
 
             MarkerSymbolReader markerReader = new MarkerSymbolReader();


More information about the MXD2map-commits mailing list