[MXD2map-commits] r257:1ac277053049

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon Aug 15 15:30:14 CEST 2011


details:   http://hg.intevation.org/geospatial/mxd2map/rev/1ac277053049

changeset: 257:1ac277053049

user:      raimund renkert <raimund.renkert at intevation.de>

date:      Mon Aug 15 15:28:05 2011 +0200

description:
Set map size after setting map extent to avoid the extent to be modified
by mapscript.


diffstat:

 ChangeLog                                              |  6 ++++++
 src/java/de/intevation/mxd/writer/MapScriptWriter.java |  2 ++
 2 files changed, 8 insertions(+), 0 deletions(-)

diffs (25 lines):

diff -r 4dc2b9aa3c57 -r 1ac277053049 ChangeLog
--- 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 at 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 at intevation.de>
 
 	* build.xml,
diff -r 4dc2b9aa3c57 -r 1ac277053049 src/java/de/intevation/mxd/writer/MapScriptWriter.java
--- 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) {


More information about the MXD2map-commits mailing list