diff src/java/de/intevation/mxd/writer/MapScriptWriter.java @ 190:c640fb351f66

Do not write layer with empty CLASS objects.
author raimund renkert <raimund.renkert@intevation.de>
date Wed, 20 Jul 2011 16:00:22 +0200
parents 0965f8af70fa
children 5350621a0294
line wrap: on
line diff
--- a/src/java/de/intevation/mxd/writer/MapScriptWriter.java	Wed Jul 20 15:55:43 2011 +0200
+++ b/src/java/de/intevation/mxd/writer/MapScriptWriter.java	Wed Jul 20 16:00:22 2011 +0200
@@ -190,6 +190,10 @@
         for(int i = 0; i < list.getLength(); i++) {
             Element layerElement = (Element)list.item(i);
             layerObj layer = new layerObj(map);
+            NodeList renderer = layerElement.getElementsByTagName("renderer");
+	    if (renderer.getLength() == 0) {
+	        continue;
+	    }
 
             //The layer name.
             String lname = layerElement.getAttribute("name");
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)