diff src/java/de/intevation/mxd/writer/MapScriptWriter.java @ 315:1d77ea6a915d

Add basic support for Graphics Layers. For now this is restricted to simple TextElements and the base layer.
author Andre Heinecke <aheinecke@intevation.de>
date Mon, 17 Sep 2012 17:08:15 +0200
parents cd3cb1a7f35a
children 5a2b5bc066eb
line wrap: on
line diff
--- a/src/java/de/intevation/mxd/writer/MapScriptWriter.java	Mon Sep 17 17:02:15 2012 +0200
+++ b/src/java/de/intevation/mxd/writer/MapScriptWriter.java	Mon Sep 17 17:08:15 2012 +0200
@@ -38,10 +38,14 @@
 import edu.umn.gis.mapscript.colorObj;
 import edu.umn.gis.mapscript.fontSetObj;
 import edu.umn.gis.mapscript.hashTableObj;
+import edu.umn.gis.mapscript.shapeObj;
+import edu.umn.gis.mapscript.pointObj;
+import edu.umn.gis.mapscript.lineObj;
 
 import edu.umn.gis.mapscript.MS_UNITS;
 import edu.umn.gis.mapscript.MS_LAYER_TYPE;
 import edu.umn.gis.mapscript.MS_CONNECTION_TYPE;
+import edu.umn.gis.mapscript.MS_SHAPE_TYPE;
 import edu.umn.gis.mapscript.MS_FONT_TYPE;
 import edu.umn.gis.mapscript.MS_POSITIONS_ENUM;
 
@@ -570,6 +574,9 @@
                 layer.setLabelitem(expr.trim());
             }
 
+            //Write elements.
+            writeFeatures(layer, layerElement);
+
             //Write classes.
             writeClass(layer, layerElement);
         }
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)