comparison src/java/de/intevation/mxd/writer/MapScriptWriter.java @ 332:da60e3ac2b5d

Fix getLabel calls to work wiht mapscript 6.2 api
author Andre Heinecke <aheinecke@intevation.de>
date Mon, 22 Oct 2012 17:39:25 +0200
parents 5e7e6d99f997
children 4cf94b919725
comparison
equal deleted inserted replaced
331:10939bda0aaa 332:da60e3ac2b5d
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(); 723 labelObj label = co.getLabel(0);
724 724
725 //Get the label text symbol attributes from DOM. 725 //Get the label text symbol attributes from DOM.
726 Element symbol = (Element)labelElement.getFirstChild(); 726 Element symbol = (Element)labelElement.getFirstChild();
727 if(symbol != null && symbol.getTagName().equals("symbol")) { 727 if(symbol != null && symbol.getTagName().equals("symbol")) {
728 String type = symbol.getAttribute("type"); 728 String type = symbol.getAttribute("type");
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)