changeset 204:52b918f958d0

Remove incomplete layer from map.
author raimund renkert <raimund.renkert@intevation.de>
date Thu, 21 Jul 2011 16:17:30 +0200
parents 123fd9887a4f
children 07b991b940ab
files ChangeLog src/java/de/intevation/mxd/writer/MapScriptWriter.java
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu Jul 21 16:12:39 2011 +0200
+++ b/ChangeLog	Thu Jul 21 16:17:30 2011 +0200
@@ -1,3 +1,8 @@
+2011-07-21  Raimund Renkert  <raimund.renkert@intevation.de>
+
+	* src/java/de/intevation/mxd/writer/MapScriptWriter.java:
+	  Remove incomplete layer from map.
+
 2011-07-21  Raimund Renkert  <raimund.renkert@intevation.de>
 
 	* src/java/de/intevation/mxd/writer/MapScriptWriter.java:
--- a/src/java/de/intevation/mxd/writer/MapScriptWriter.java	Thu Jul 21 16:12:39 2011 +0200
+++ b/src/java/de/intevation/mxd/writer/MapScriptWriter.java	Thu Jul 21 16:17:30 2011 +0200
@@ -194,6 +194,7 @@
             layerObj layer = new layerObj(map);
             NodeList renderer = layerElement.getElementsByTagName("renderer");
 	    if (renderer.getLength() == 0) {
+		map.removeLayer(layer.getIndex());
 	        continue;
 	    }
 
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)