comparison src/java/de/intevation/mxd/reader/MXDReader.java @ 301:2cb2d8eb56ed

Add WMS Support in the Reader classes and add new Reader classes for WMS Layers
author Andre Heinecke <aheinecke@intevation.de>
date Wed, 05 Sep 2012 16:19:18 +0200
parents 276f63c86f1c
children a9684178cb29
comparison
equal deleted inserted replaced
300:215ae6199b95 301:2cb2d8eb56ed
31 import com.esri.arcgis.carto.IFeatureRenderer; 31 import com.esri.arcgis.carto.IFeatureRenderer;
32 import com.esri.arcgis.carto.SimpleRenderer; 32 import com.esri.arcgis.carto.SimpleRenderer;
33 import com.esri.arcgis.carto.ClassBreaksRenderer; 33 import com.esri.arcgis.carto.ClassBreaksRenderer;
34 import com.esri.arcgis.carto.UniqueValueRenderer; 34 import com.esri.arcgis.carto.UniqueValueRenderer;
35 import com.esri.arcgis.carto.GroupLayer; 35 import com.esri.arcgis.carto.GroupLayer;
36 import com.esri.arcgis.carto.WMSMapLayer;
37 import com.esri.arcgis.carto.WMSGroupLayer;
38 import com.esri.arcgis.carto.WMSLayer;
36 39
37 import org.w3c.dom.Document; 40 import org.w3c.dom.Document;
38 import org.w3c.dom.Element; 41 import org.w3c.dom.Element;
39 42
40 import de.intevation.mxd.ArcGISInitializer; 43 import de.intevation.mxd.ArcGISInitializer;
222 Element layerElement = gl.read(""); 225 Element layerElement = gl.read("");
223 if(layerElement == null) { 226 if(layerElement == null) {
224 throw new IOException ("Error reading grouplayer."); 227 throw new IOException ("Error reading grouplayer.");
225 } 228 }
226 } 229 }
230 else if(layer instanceof WMSMapLayer) {
231 WMSMapLayerReader lr = new WMSMapLayerReader(layer);
232 lr.setUtil(util);
233 Element layerElement = lr.read("");
234 if(layerElement == null) {
235 throw new IOException ("Error reading WMSMapLayer.");
236 }
237 }
238 else if(layer instanceof WMSGroupLayer) {
239 WMSGroupLayerReader lr = new WMSGroupLayerReader(layer);
240 lr.setUtil(util);
241 Element layerElement = lr.read("");
242 if(layerElement == null) {
243 throw new IOException ("Error reading WMSGrouplayer.");
244 }
245 }
246 else if(layer instanceof WMSLayer) {
247 WMSLayerReader lr = new WMSLayerReader(layer);
248 lr.setUtil(util);
249 Element layerElement = lr.read();
250 if(layerElement == null) {
251 throw new IOException ("Error reading WMSlayer.");
252 }
253 }
227 else { 254 else {
228 logger.info( 255 logger.info(
229 "Layertype not known: " + 256 "Layertype not known: " +
230 layer.getClass().toString()); 257 layer.getClass().toString());
231 } 258 }
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)