Mercurial > mxd2map
diff src/java/de/intevation/mxd/writer/MapScriptWriter.java @ 124:0f5819732288
Set label text as class name in mapfile.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Fri, 17 Jun 2011 14:13:25 +0200 |
parents | 11d63bf00326 |
children | ff0354265a7d |
line wrap: on
line diff
--- a/src/java/de/intevation/mxd/writer/MapScriptWriter.java Fri Jun 17 13:36:33 2011 +0200 +++ b/src/java/de/intevation/mxd/writer/MapScriptWriter.java Fri Jun 17 14:13:25 2011 +0200 @@ -208,7 +208,7 @@ for(int i = 0; i < list.getLength(); i++) { Element classElement = (Element)list.item(i); classObj co = new classObj(layer); - String name = classElement.getAttribute("name"); + String name = classElement.getAttribute("label"); if (name.equals("")) { name = layerElement.getAttribute("name"); if (list.getLength() > 1) {