Mercurial > mxd2map
comparison 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 |
comparison
equal
deleted
inserted
replaced
147:03daf386f19a | 148:2bf35f0babd0 |
---|---|
11 import com.esri.arcgis.carto.GdbRasterCatalogLayer; | 11 import com.esri.arcgis.carto.GdbRasterCatalogLayer; |
12 import com.esri.arcgis.carto.IFeatureRenderer; | 12 import com.esri.arcgis.carto.IFeatureRenderer; |
13 import com.esri.arcgis.carto.SimpleRenderer; | 13 import com.esri.arcgis.carto.SimpleRenderer; |
14 import com.esri.arcgis.carto.ClassBreaksRenderer; | 14 import com.esri.arcgis.carto.ClassBreaksRenderer; |
15 import com.esri.arcgis.carto.UniqueValueRenderer; | 15 import com.esri.arcgis.carto.UniqueValueRenderer; |
16 import com.esri.arcgis.carto.GroupLayer; | |
16 | 17 |
17 import org.w3c.dom.Document; | 18 import org.w3c.dom.Document; |
18 import org.w3c.dom.Element; | 19 import org.w3c.dom.Element; |
19 | 20 |
20 import de.intevation.mxd.ArcGISInitializer; | 21 import de.intevation.mxd.ArcGISInitializer; |
187 else { | 188 else { |
188 logger.debug("Not a known renderer type " + | 189 logger.debug("Not a known renderer type " + |
189 renderer.getClass().toString()); | 190 renderer.getClass().toString()); |
190 } | 191 } |
191 } | 192 } |
193 else if(layer instanceof GroupLayer) { | |
194 GroupLayerReader gl = new GroupLayerReader(layer); | |
195 gl.setUtil(util); | |
196 Element layerElement = gl.read(); | |
197 if(layerElement == null) { | |
198 throw new IOException ("Error reading grouplayer."); | |
199 } | |
200 } | |
201 else { | |
202 logger.info( | |
203 "Layertype not known: " + | |
204 layer.getClass().toString()); | |
205 } | |
192 } | 206 } |
193 catch(Exception e) { | 207 catch(Exception e) { |
194 invalidLayerCount++; | 208 invalidLayerCount++; |
195 if(i == 0 && (i + 1) == map.getLayerCount() || | 209 if(i == 0 && (i + 1) == map.getLayerCount() || |
196 invalidLayerCount == map.getLayerCount()) { | 210 invalidLayerCount == map.getLayerCount()) { |