changeset 338:b3048df06b66

* src/java/de/intevation/mxd/writer/MapScriptWriter.java: Write referencescale of a map in each layer.
author Andre Heinecke <aheinecke@intevation.de>
date Tue, 06 Nov 2012 12:08:15 +0100
parents ee77a3ae0201
children ef1cac2854e3
files ChangeLog src/java/de/intevation/mxd/writer/MapScriptWriter.java
diffstat 2 files changed, 10 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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@intevation.de>
+
+	* src/java/de/intevation/mxd/writer/MapScriptWriter.java:
+    Write referencescale of a map in each layer.
+
 2012-11-06  Andre Heinecke <aheinecke@intevation.de>
 
 	* src/java/de/intevation/mxd/reader/UniqueValueRendererReader.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");
             }
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)