diff src/java/de/intevation/mxd/writer/MapScriptWriter.java @ 304:50031b1ae8e6

No longer ignore Layers without classes
author Andre Heinecke <aheinecke@intevation.de>
date Wed, 05 Sep 2012 17:18:18 +0200
parents 215ae6199b95
children ebf974199309
line wrap: on
line diff
--- a/src/java/de/intevation/mxd/writer/MapScriptWriter.java	Wed Sep 05 17:16:41 2012 +0200
+++ b/src/java/de/intevation/mxd/writer/MapScriptWriter.java	Wed Sep 05 17:18:18 2012 +0200
@@ -261,14 +261,6 @@
             Element layerElement = (Element)list.item(i);
             layerObj layer = new layerObj(map);
             NodeList renderer = layerElement.getElementsByTagName("renderer");
-            if (renderer.getLength() == 0 &&
-                    layerElement.getAttribute("connection_type") != "WMS") {
-                map.removeLayer(layer.getIndex());
-                logger.warn(
-                    "Skipping empty layer " + 
-                    layerElement.getAttribute("name"));
-                continue;
-            }
 
             //The layer name.
             String group = "";
@@ -398,7 +390,7 @@
             //The layer datasource.
             String con_type = layerElement.getAttribute("connection_type");
             if(con_type.equals("local")) {
-                // The data source is a local file. (.shp)
+                // The data source is a local file. (.shp or Image)
                 String datasource = "";
                 if(layerElement.hasAttribute("workspace")) {
                     datasource = layerElement.getAttribute("workspace");
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)