diff src/java/de/intevation/mxd/reader/MXDReader.java @ 148:2bf35f0babd0

Implemented new group layer functionality.
author vc11884admin@VC11884.win.bsh.de
date Wed, 29 Jun 2011 17:45:50 +0200
parents 6b80d2c7536e
children 0bde090506f9
line wrap: on
line diff
--- a/src/java/de/intevation/mxd/reader/MXDReader.java	Wed Jun 29 17:36:07 2011 +0200
+++ b/src/java/de/intevation/mxd/reader/MXDReader.java	Wed Jun 29 17:45:50 2011 +0200
@@ -13,6 +13,7 @@
 import com.esri.arcgis.carto.SimpleRenderer;
 import com.esri.arcgis.carto.ClassBreaksRenderer;
 import com.esri.arcgis.carto.UniqueValueRenderer;
+import com.esri.arcgis.carto.GroupLayer;
 
 import org.w3c.dom.Document;
 import org.w3c.dom.Element;
@@ -189,6 +190,19 @@
                                          renderer.getClass().toString());
                         }
                     }
+                    else if(layer instanceof GroupLayer) {
+                        GroupLayerReader gl = new GroupLayerReader(layer);
+                        gl.setUtil(util);
+                        Element layerElement = gl.read();
+                        if(layerElement == null) {
+                            throw new IOException ("Error reading grouplayer.");
+                        }
+                    }
+                    else {
+                        logger.info(
+                            "Layertype not known: " +
+                            layer.getClass().toString());
+                    }
                 }
                 catch(Exception e) {
                     invalidLayerCount++;
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)