diff src/java/de/intevation/mxd/writer/MapScriptWriter.java @ 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 0fecdcc28b1b
children f0c02ff120d6
line wrap: on
line diff
--- 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"));
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)