[MXD2map-commits] r338:b3048df06b66

scm-commit at wald.intevation.org scm-commit at wald.intevation.org
Tue Nov 6 12:08:29 CET 2012


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

changeset: 338:b3048df06b66

user:      Andre Heinecke <aheinecke at intevation.de>

date:      Tue Nov 06 12:08:15 2012 +0100

description:
* src/java/de/intevation/mxd/writer/MapScriptWriter.java:
    Write referencescale of a map in each layer.


diffstat:

 ChangeLog                                              |  5 +++++
 src/java/de/intevation/mxd/writer/MapScriptWriter.java |  9 +++++----
 2 files changed, 10 insertions(+), 4 deletions(-)

diffs (33 lines):

diff -r ee77a3ae0201 -r b3048df06b66 ChangeLog
--- a/ChangeLog	Tue Nov 06 12:05:26 2012 +0100
+++ b/ChangeLog	Tue Nov 06 12:08:15 2012 +0100
@@ -1,3 +1,8 @@
+2012-11-06  Andre Heinecke <aheinecke at intevation.de>
+
+	* src/java/de/intevation/mxd/writer/MapScriptWriter.java:
+    Write referencescale of a map in each layer.
+
 2012-11-06  Andre Heinecke <aheinecke at intevation.de>
 
 	* src/java/de/intevation/mxd/reader/UniqueValueRendererReader.java:
diff -r ee77a3ae0201 -r b3048df06b66 src/java/de/intevation/mxd/writer/MapScriptWriter.java
--- a/src/java/de/intevation/mxd/writer/MapScriptWriter.java	Tue Nov 06 12:05:26 2012 +0100
+++ b/src/java/de/intevation/mxd/writer/MapScriptWriter.java	Tue Nov 06 12:08:15 2012 +0100
@@ -551,12 +551,13 @@
                 layer.setOffsite(new colorObj(255,255,255,-4));
             }
 
+            if (mapNode.hasAttribute("referencescale")) {
+                layer.setSymbolscaledenom(Double.parseDouble(
+                        mapNode.getAttribute("referencescale")));
+            }
+
             // Set scaling properties for layer and add Processing
             if(type == "annotation") {
-                if (mapNode.hasAttribute("referencescale")) {
-                    layer.setSymbolscaledenom(Double.parseDouble(
-                            mapNode.getAttribute("referencescale")));
-                }
                 layer.addProcessing("ITEMS=classId");
                 layer.setClassitem("classId");
             }


More information about the MXD2map-commits mailing list