comparison 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
comparison
equal deleted inserted replaced
246:87e92debc53f 247:30e10eb9ac68
223 Element layerElement = (Element)list.item(i); 223 Element layerElement = (Element)list.item(i);
224 layerObj layer = new layerObj(map); 224 layerObj layer = new layerObj(map);
225 NodeList renderer = layerElement.getElementsByTagName("renderer"); 225 NodeList renderer = layerElement.getElementsByTagName("renderer");
226 if (renderer.getLength() == 0) { 226 if (renderer.getLength() == 0) {
227 map.removeLayer(layer.getIndex()); 227 map.removeLayer(layer.getIndex());
228 logger.warn(
229 "Skipping empty layer " +
230 layerElement.getAttribute("name"));
228 continue; 231 continue;
229 } 232 }
230 233
231 //The layer name. 234 //The layer name.
232 String group = ""; 235 String group = "";
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)