Mercurial > mxd2map
comparison src/java/de/intevation/mxd/writer/MapScriptWriter.java @ 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 | cedb23deb057 |
children | 4bae15d560d3 |
comparison
equal
deleted
inserted
replaced
256:4dc2b9aa3c57 | 257:1ac277053049 |
---|---|
166 "ows_extent", | 166 "ows_extent", |
167 mapNode.getAttribute("extent_min_x") + ", " + | 167 mapNode.getAttribute("extent_min_x") + ", " + |
168 mapNode.getAttribute("extent_min_y") + ", " + | 168 mapNode.getAttribute("extent_min_y") + ", " + |
169 mapNode.getAttribute("extent_max_x") + ", " + | 169 mapNode.getAttribute("extent_max_x") + ", " + |
170 mapNode.getAttribute("extent_max_y")); | 170 mapNode.getAttribute("extent_max_y")); |
171 | |
172 map.setSize(800, 600); | |
171 | 173 |
172 //Set the units and projection. | 174 //Set the units and projection. |
173 int proj = Integer.parseInt(mapNode.getAttribute("projection")); | 175 int proj = Integer.parseInt(mapNode.getAttribute("projection")); |
174 if(proj != 0) { | 176 if(proj != 0) { |
175 map.setProjection("epsg:" + mapNode.getAttribute("projection")); | 177 map.setProjection("epsg:" + mapNode.getAttribute("projection")); |