changeset 257:1ac277053049

Set map size after setting map extent to avoid the extent to be modified by mapscript.
author raimund renkert <raimund.renkert@intevation.de>
date Mon, 15 Aug 2011 15:28:05 +0200
parents 4dc2b9aa3c57
children 4bae15d560d3
files ChangeLog src/java/de/intevation/mxd/writer/MapScriptWriter.java
diffstat 2 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Mon Aug 15 15:03:44 2011 +0200
+++ b/ChangeLog	Mon Aug 15 15:28:05 2011 +0200
@@ -1,3 +1,9 @@
+2011-08-15  Raimund Renkert  <raimund.renkert@intevation.de>
+
+	* src/java/de/intevation/mxd/writer/MapScriptWriter.java:
+	  Set map size after setting map extent to avoid the extent to be
+	  modified by mapscript.
+
 2011-08-15  Raimund Renkert  <raimund.renkert@intevation.de>
 
 	* build.xml,
--- a/src/java/de/intevation/mxd/writer/MapScriptWriter.java	Mon Aug 15 15:03:44 2011 +0200
+++ b/src/java/de/intevation/mxd/writer/MapScriptWriter.java	Mon Aug 15 15:28:05 2011 +0200
@@ -169,6 +169,8 @@
 	    mapNode.getAttribute("extent_max_x") + ", " +
 	    mapNode.getAttribute("extent_max_y"));
 
+	map.setSize(800, 600);
+
         //Set the units and projection.
         int proj = Integer.parseInt(mapNode.getAttribute("projection"));
         if(proj != 0) {
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)