diff src/java/de/intevation/mxd/writer/MapScriptWriter.java @ 247:30e10eb9ac68

Print out a message if an empty layer is not written to the mapfile.
author raimund renkert <raimund.renkert@intevation.de>
date Wed, 10 Aug 2011 13:23:29 +0200
parents 87e92debc53f
children 191b7d18c79e
line wrap: on
line diff
--- a/src/java/de/intevation/mxd/writer/MapScriptWriter.java	Wed Aug 10 13:18:53 2011 +0200
+++ b/src/java/de/intevation/mxd/writer/MapScriptWriter.java	Wed Aug 10 13:23:29 2011 +0200
@@ -225,6 +225,9 @@
             NodeList renderer = layerElement.getElementsByTagName("renderer");
 	    if (renderer.getLength() == 0) {
 		map.removeLayer(layer.getIndex());
+		logger.warn(
+		    "Skipping empty layer " + 
+		    layerElement.getAttribute("name"));
 	        continue;
 	    }
 
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)