[MXD2map-commits] r247:30e10eb9ac68
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Wed Aug 10 15:01:02 CEST 2011
details: http://hg.intevation.org/geospatial/mxd2map/rev/30e10eb9ac68
changeset: 247:30e10eb9ac68
user: raimund renkert <raimund.renkert at intevation.de>
date: Wed Aug 10 13:23:29 2011 +0200
description:
Print out a message if an empty layer is not written to the mapfile.
diffstat:
ChangeLog | 5 +++++
src/java/de/intevation/mxd/writer/MapScriptWriter.java | 3 +++
2 files changed, 8 insertions(+), 0 deletions(-)
diffs (25 lines):
diff -r 87e92debc53f -r 30e10eb9ac68 ChangeLog
--- 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 at 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 at intevation.de>
* src/java/de/intevation/mxd/reader/FeatureLayerReader.java:
diff -r 87e92debc53f -r 30e10eb9ac68 src/java/de/intevation/mxd/writer/MapScriptWriter.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;
}
More information about the MXD2map-commits
mailing list