# HG changeset patch # User Stephan Holl # Date 1305101418 -7200 # Node ID 691864097eb1d8798da4bcc45ca6cc65338e165e # Parent cd541e73d52308c4537e20ee869ba01b35fbd969 * src/java/de/intevation/mxd/writer/MapScriptWriter.java: Added the (currently) hard-coded template-path to the mapObj-constructor; removed some TODO-settings. diff -r cd541e73d523 -r 691864097eb1 ChangeLog --- 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 + + * 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 * mapserver/rundir/Readme.txt: New. This is a folder containing the diff -r cd541e73d523 -r 691864097eb1 src/java/de/intevation/mxd/writer/MapScriptWriter.java --- 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"));