Mercurial > mxd2map
comparison 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 |
comparison
equal
deleted
inserted
replaced
314:cd3cb1a7f35a | 315:1d77ea6a915d |
---|---|
36 import edu.umn.gis.mapscript.classObj; | 36 import edu.umn.gis.mapscript.classObj; |
37 import edu.umn.gis.mapscript.labelObj; | 37 import edu.umn.gis.mapscript.labelObj; |
38 import edu.umn.gis.mapscript.colorObj; | 38 import edu.umn.gis.mapscript.colorObj; |
39 import edu.umn.gis.mapscript.fontSetObj; | 39 import edu.umn.gis.mapscript.fontSetObj; |
40 import edu.umn.gis.mapscript.hashTableObj; | 40 import edu.umn.gis.mapscript.hashTableObj; |
41 import edu.umn.gis.mapscript.shapeObj; | |
42 import edu.umn.gis.mapscript.pointObj; | |
43 import edu.umn.gis.mapscript.lineObj; | |
41 | 44 |
42 import edu.umn.gis.mapscript.MS_UNITS; | 45 import edu.umn.gis.mapscript.MS_UNITS; |
43 import edu.umn.gis.mapscript.MS_LAYER_TYPE; | 46 import edu.umn.gis.mapscript.MS_LAYER_TYPE; |
44 import edu.umn.gis.mapscript.MS_CONNECTION_TYPE; | 47 import edu.umn.gis.mapscript.MS_CONNECTION_TYPE; |
48 import edu.umn.gis.mapscript.MS_SHAPE_TYPE; | |
45 import edu.umn.gis.mapscript.MS_FONT_TYPE; | 49 import edu.umn.gis.mapscript.MS_FONT_TYPE; |
46 import edu.umn.gis.mapscript.MS_POSITIONS_ENUM; | 50 import edu.umn.gis.mapscript.MS_POSITIONS_ENUM; |
47 | 51 |
48 import de.intevation.mxd.utils.XMLUtils; | 52 import de.intevation.mxd.utils.XMLUtils; |
49 import de.intevation.mxd.utils.MapScriptUtils; | 53 import de.intevation.mxd.utils.MapScriptUtils; |
568 expr = prefix + "." + expr; | 572 expr = prefix + "." + expr; |
569 } | 573 } |
570 layer.setLabelitem(expr.trim()); | 574 layer.setLabelitem(expr.trim()); |
571 } | 575 } |
572 | 576 |
577 //Write elements. | |
578 writeFeatures(layer, layerElement); | |
579 | |
573 //Write classes. | 580 //Write classes. |
574 writeClass(layer, layerElement); | 581 writeClass(layer, layerElement); |
575 } | 582 } |
576 return true; | 583 return true; |
577 } | 584 } |