diff src/java/de/intevation/mxd/writer/MapScriptWriter.java @ 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 4cf94b919725
children ef1cac2854e3
line wrap: on
line diff
--- 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)