[MXD2map-commits] r335:4cf94b919725

scm-commit at wald.intevation.org scm-commit at wald.intevation.org
Fri Oct 26 12:46:52 CEST 2012


details:   http://hg.intevation.org/geospatial/mxd2map/rev/4cf94b919725

changeset: 335:4cf94b919725

user:      Andre Heinecke <aheinecke at intevation.de>

date:      Fri Oct 26 12:46:41 2012 +0200

description:
* src/java/de/intevation/mxd/writer/MapScriptWriter.java:
Fix Label handling according to mapscript 6.2


diffstat:

 ChangeLog                                              |  2 ++
 src/java/de/intevation/mxd/writer/MapScriptWriter.java |  3 ++-
 2 files changed, 4 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r 2e445968851f -r 4cf94b919725 ChangeLog
--- a/ChangeLog	Fri Oct 26 12:45:42 2012 +0200
+++ b/ChangeLog	Fri Oct 26 12:46:41 2012 +0200
@@ -3,6 +3,8 @@
 	* src/java/de/intevation/mxd/reader/WMSLayerReader.java:
 	Do not write WMS Verstions in the map file that mapserver
 	can not support
+	* src/java/de/intevation/mxd/writer/MapScriptWriter.java:
+	Fix Label handling according to mapscript 6.2
 
 2012-10-22  Andre Heinecke <aheinecke at intevation.de>
 
diff -r 2e445968851f -r 4cf94b919725 src/java/de/intevation/mxd/writer/MapScriptWriter.java
--- a/src/java/de/intevation/mxd/writer/MapScriptWriter.java	Fri Oct 26 12:45:42 2012 +0200
+++ b/src/java/de/intevation/mxd/writer/MapScriptWriter.java	Fri Oct 26 12:46:41 2012 +0200
@@ -720,7 +720,8 @@
         String layerType) {
 
         //Get the label object. Each class has a predefined labelobject.
-        labelObj label = co.getLabel(0);
+        labelObj label = new labelObj();
+        co.addLabel(label);
 
         //Get the label text symbol attributes from DOM.
         Element symbol = (Element)labelElement.getFirstChild();


More information about the MXD2map-commits mailing list