changeset 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 (2012-10-22)
parents 10939bda0aaa
children 84ab3afc5610
files ChangeLog src/java/de/intevation/mxd/writer/LabelStyleWriter.java src/java/de/intevation/mxd/writer/MapScriptWriter.java
diffstat 3 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Mon Oct 22 17:38:01 2012 +0200
+++ b/ChangeLog	Mon Oct 22 17:39:25 2012 +0200
@@ -2,6 +2,9 @@
 
 	* contrib/installer/example/example/epsg/epsg:
 	Add Gauss Kruger zone 2, Germany Zone 2, Germany Zone 3
+	* src/java/de/intevation/mxd/writer/LabelStyleWriter.java,
+	src/java/de/intevation/mxd/writer/MapScriptWriter.java:
+	Fix getLabel calls to work with mapscript 6.2 api
 
 2011-10-22  Andre Heinecke <aheinecke@intevation.de>
 
--- a/src/java/de/intevation/mxd/writer/LabelStyleWriter.java	Mon Oct 22 17:38:01 2012 +0200
+++ b/src/java/de/intevation/mxd/writer/LabelStyleWriter.java	Mon Oct 22 17:39:25 2012 +0200
@@ -72,7 +72,7 @@
     public boolean write(Element symbolElement) {
         logger.debug("write(Element)");
 
-        cl.getLabel().insertStyle(style, -1);
+        cl.getLabel(0).insertStyle(style, -1);
 
         symbolSetObj symbolSet = map.getSymbolset();
 
--- a/src/java/de/intevation/mxd/writer/MapScriptWriter.java	Mon Oct 22 17:38:01 2012 +0200
+++ b/src/java/de/intevation/mxd/writer/MapScriptWriter.java	Mon Oct 22 17:39:25 2012 +0200
@@ -720,7 +720,7 @@
         String layerType) {
 
         //Get the label object. Each class has a predefined labelobject.
-        labelObj label = co.getLabel();
+        labelObj label = co.getLabel(0);
 
         //Get the label text symbol attributes from DOM.
         Element symbol = (Element)labelElement.getFirstChild();
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)