changeset 153:7ed49420ee5a

Changed min scale and max scale in writer.
author vc11884admin@VC11884.win.bsh.de
date Thu, 30 Jun 2011 14:31:01 +0200
parents 8a87c796bf47
children 87afe66f7d88
files ChangeLog src/java/de/intevation/mxd/writer/MapScriptWriter.java
diffstat 2 files changed, 9 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu Jun 30 13:48:09 2011 +0200
+++ b/ChangeLog	Thu Jun 30 14:31:01 2011 +0200
@@ -1,3 +1,10 @@
+2011-06-30  Raimund Renkert  <raimund.renkert@intevation.de>
+
+	* src/java/de/intevation/mxd/writer/MapScriptWriter.java:
+	  Changed min and max scale. Mapserver uses MAXSCALEDENOM to set the
+	  upper bound for drawing a layer, ArcGIS uses the min scale to set
+	  this bound.
+
 2011-06-30  Raimund Renkert  <raimund.renkert@intevation.de>
 
 	* src/java/de/intevation/mxd/writer/MapScriptWriter.java:
--- a/src/java/de/intevation/mxd/writer/MapScriptWriter.java	Thu Jun 30 13:48:09 2011 +0200
+++ b/src/java/de/intevation/mxd/writer/MapScriptWriter.java	Thu Jun 30 14:31:01 2011 +0200
@@ -169,9 +169,9 @@
             double minScale = 0;
             try {
                 maxScale =
+                    Double.parseDouble(layerElement.getAttribute("min_scale"));
+                minScale =
                     Double.parseDouble(layerElement.getAttribute("max_scale"));
-                minScale =
-                    Double.parseDouble(layerElement.getAttribute("min_scale"));
             }
             catch(NumberFormatException nfe) {
                 logger.warn("Error setting scale.");
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)