Mercurial > mxd2map
changeset 53:691864097eb1
* src/java/de/intevation/mxd/writer/MapScriptWriter.java: Added
the (currently) hard-coded template-path to the
mapObj-constructor; removed some TODO-settings.
author | Stephan Holl <stephan.holl@intevation.de> |
---|---|
date | Wed, 11 May 2011 10:10:18 +0200 |
parents | cd541e73d523 |
children | 2cbf8bdf20b2 f0c02ff120d6 |
files | ChangeLog src/java/de/intevation/mxd/writer/MapScriptWriter.java |
diffstat | 2 files changed, 11 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Wed May 11 10:08:25 2011 +0200 +++ b/ChangeLog Wed May 11 10:10:18 2011 +0200 @@ -1,3 +1,9 @@ +2011-05-11 Stephan Holl <stephan.holl@intevation.de> + + * src/java/de/intevation/mxd/writer/MapScriptWriter.java: Added + the (currently) hard-coded template-path to the + mapObj-constructor; removed some TODO-settings. + 2011-05-11 Stephan Holl <stephan.holl@intevation.de> * mapserver/rundir/Readme.txt: New. This is a folder containing the
--- a/src/java/de/intevation/mxd/writer/MapScriptWriter.java Wed May 11 10:08:25 2011 +0200 +++ b/src/java/de/intevation/mxd/writer/MapScriptWriter.java Wed May 11 10:10:18 2011 +0200 @@ -46,8 +46,12 @@ private mapObj map; + /** + * TODO: Workarround to import the Mapfile-Template, it should be done + * via a property file, currently hardcoded. + */ public MapScriptWriter() { - map = new mapObj(""); + map = new mapObj("z:/mxd-testbed_sh/mapserver/mapfile/mxd.map"); } public MapScriptWriter(String path) { @@ -94,12 +98,6 @@ "/mxd/map", XPathConstants.NODE); - //TODO Get the following values from a template. - map.setShapepath("/home/intevation/mxd-testbed/testdata-frida"); - map.setHeight(700); - map.setWidth(800); - map.setProjection("EPSG:4326"); - //Set the name. map.setName(mapNode.getAttribute("name")); map.setMetaData("wms_title", mapNode.getAttribute("name"));