comparison src/java/de/intevation/mxd/writer/MapScriptWriter.java @ 335:4cf94b919725

* src/java/de/intevation/mxd/writer/MapScriptWriter.java: Fix Label handling according to mapscript 6.2
author Andre Heinecke <aheinecke@intevation.de>
date Fri, 26 Oct 2012 12:46:41 +0200
parents da60e3ac2b5d
children b3048df06b66
comparison
equal deleted inserted replaced
334:2e445968851f 335:4cf94b919725
718 classObj co, 718 classObj co,
719 Element labelElement, 719 Element labelElement,
720 String layerType) { 720 String layerType) {
721 721
722 //Get the label object. Each class has a predefined labelobject. 722 //Get the label object. Each class has a predefined labelobject.
723 labelObj label = co.getLabel(0); 723 labelObj label = new labelObj();
724 co.addLabel(label);
724 725
725 //Get the label text symbol attributes from DOM. 726 //Get the label text symbol attributes from DOM.
726 Element symbol = (Element)labelElement.getFirstChild(); 727 Element symbol = (Element)labelElement.getFirstChild();
727 if(symbol != null && symbol.getTagName().equals("symbol")) { 728 if(symbol != null && symbol.getTagName().equals("symbol")) {
728 String type = symbol.getAttribute("type"); 729 String type = symbol.getAttribute("type");
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)