Mercurial > mxd2map
changeset 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 |
files | ChangeLog src/java/de/intevation/mxd/writer/MapScriptWriter.java |
diffstat | 2 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Wed Aug 10 13:18:53 2011 +0200 +++ b/ChangeLog Wed Aug 10 13:23:29 2011 +0200 @@ -1,3 +1,8 @@ +2011-08-10 Raimund Renkert <raimund.renkert@intevation.de> + + * src/java/de/intevation/mxd/writer/MapScriptWriter.java: + Print out a message if an empty layer is not written to the mapfile. + 2011-08-09 Raimund Renkert <raimund.renkert@intevation.de> * src/java/de/intevation/mxd/reader/FeatureLayerReader.java:
--- 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; }