annotate src/java/de/intevation/mxd/reader/SimpleRendererReader.java @ 277:b2df9936d4f8

* doku/source/conf.py, contrib/installer/MXD2map-installer.nsi: Bumped version-number to 1.0
author Stephan Holl <stephan.holl@intevation.de>
date Thu, 06 Oct 2011 12:31:05 +0200
parents df4e0946ef02
children 8079b2acca67
rev   line source
243
df4e0946ef02 Added LGPL header.
Raimund Renkert <rrenkert@intevation.de>
parents: 181
diff changeset
1 /*
df4e0946ef02 Added LGPL header.
Raimund Renkert <rrenkert@intevation.de>
parents: 181
diff changeset
2 * Copyright (c) 2011 by Intevation GmbH, Germany <info@intevation.de>
df4e0946ef02 Added LGPL header.
Raimund Renkert <rrenkert@intevation.de>
parents: 181
diff changeset
3 *
df4e0946ef02 Added LGPL header.
Raimund Renkert <rrenkert@intevation.de>
parents: 181
diff changeset
4 * This file is part of MXD2map.
df4e0946ef02 Added LGPL header.
Raimund Renkert <rrenkert@intevation.de>
parents: 181
diff changeset
5 *
df4e0946ef02 Added LGPL header.
Raimund Renkert <rrenkert@intevation.de>
parents: 181
diff changeset
6 * This program is free software under the LGPL (>=v2.1)
df4e0946ef02 Added LGPL header.
Raimund Renkert <rrenkert@intevation.de>
parents: 181
diff changeset
7 * Read the file LICENCE.txt coming with the software for details
df4e0946ef02 Added LGPL header.
Raimund Renkert <rrenkert@intevation.de>
parents: 181
diff changeset
8 * or visit http://www.gnu.org/licenses/ if it does not exist.
df4e0946ef02 Added LGPL header.
Raimund Renkert <rrenkert@intevation.de>
parents: 181
diff changeset
9 *
df4e0946ef02 Added LGPL header.
Raimund Renkert <rrenkert@intevation.de>
parents: 181
diff changeset
10 * MXD2map has been developed on behalf of the
df4e0946ef02 Added LGPL header.
Raimund Renkert <rrenkert@intevation.de>
parents: 181
diff changeset
11 * Bundesamt fuer Seeschifffahrt und Hydrographie (BSH) in Hamburg
df4e0946ef02 Added LGPL header.
Raimund Renkert <rrenkert@intevation.de>
parents: 181
diff changeset
12 * by Intevation GmbH.
df4e0946ef02 Added LGPL header.
Raimund Renkert <rrenkert@intevation.de>
parents: 181
diff changeset
13 *
df4e0946ef02 Added LGPL header.
Raimund Renkert <rrenkert@intevation.de>
parents: 181
diff changeset
14 * Authors:
df4e0946ef02 Added LGPL header.
Raimund Renkert <rrenkert@intevation.de>
parents: 181
diff changeset
15 * Raimund Renkert <raimund.renkert@intevation.de>
df4e0946ef02 Added LGPL header.
Raimund Renkert <rrenkert@intevation.de>
parents: 181
diff changeset
16 * Bjoern Schilberg <bjoern.schilberg@intevation.de>
df4e0946ef02 Added LGPL header.
Raimund Renkert <rrenkert@intevation.de>
parents: 181
diff changeset
17 * Stephan Holl <stephan.holl@intevation.de>
df4e0946ef02 Added LGPL header.
Raimund Renkert <rrenkert@intevation.de>
parents: 181
diff changeset
18 */
df4e0946ef02 Added LGPL header.
Raimund Renkert <rrenkert@intevation.de>
parents: 181
diff changeset
19
33
c51376f8e24c Separated converter components into packages.
Raimund Renkert <rrenkert@intevation.de>
parents: 31
diff changeset
20 package de.intevation.mxd.reader;
25
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
21
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
22 import org.apache.log4j.Logger;
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
23
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
24 import com.esri.arcgis.carto.IFeatureRenderer;
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
25 import com.esri.arcgis.display.ISymbol;
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
26 import com.esri.arcgis.carto.SimpleRenderer;
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
27
31
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
28 import org.w3c.dom.Element;
116
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
29 import java.io.IOException;
31
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
30
33
c51376f8e24c Separated converter components into packages.
Raimund Renkert <rrenkert@intevation.de>
parents: 31
diff changeset
31 import de.intevation.mxd.utils.MapToXMLUtils;
c51376f8e24c Separated converter components into packages.
Raimund Renkert <rrenkert@intevation.de>
parents: 31
diff changeset
32
25
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
33 /**
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
34 * Reads simple renderer information.
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
35 *
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
36 * @author <a href="mailto:raimund.renkert@intevation.de">Raimund Renkert</a>
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
37 */
31
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
38 public class SimpleRendererReader
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
39 implements IRendererReader {
25
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
40
31
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
41 /**
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
42 * The logger.
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
43 */
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
44 private static final Logger logger =
36
472aa36d0e01 Added a new layer reader and symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 34
diff changeset
45 Logger.getLogger(SimpleRendererReader.class);
31
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
46
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
47 /**
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
48 * Private member.
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
49 */
25
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
50 private ISymbol symbol;
31
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
51 private SimpleRenderer renderer;
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
52 private Element layer;
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
53 private MapToXMLUtils util;
25
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
54
181
0bde090506f9 Added comments.
Raimund Renkert <rrenkert@intevation.de>
parents: 135
diff changeset
55 /**
0bde090506f9 Added comments.
Raimund Renkert <rrenkert@intevation.de>
parents: 135
diff changeset
56 * Constructor with renderer.
0bde090506f9 Added comments.
Raimund Renkert <rrenkert@intevation.de>
parents: 135
diff changeset
57 *
0bde090506f9 Added comments.
Raimund Renkert <rrenkert@intevation.de>
parents: 135
diff changeset
58 * @param renderer ArcGIS renderer used to draw symbols.
0bde090506f9 Added comments.
Raimund Renkert <rrenkert@intevation.de>
parents: 135
diff changeset
59 */
31
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
60 public SimpleRendererReader(IFeatureRenderer renderer)
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
61 throws Exception {
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
62 logger.debug("constructor()");
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
63 if(renderer instanceof SimpleRenderer) {
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
64 this.renderer = (SimpleRenderer)renderer;
25
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
65 }
31
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
66 else{
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
67 throw new Exception ("Not an instance of SimpleRenderer!");
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
68 }
25
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
69 }
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
70
31
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
71 /**
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
72 * Setter for the parent XML element.
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
73 *
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
74 * @param parent The XML parent node.
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
75 */
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
76 public void setParent(Element parent) {
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
77 this.layer = parent;
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
78 }
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
79
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
80 /**
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
81 * Setter for the XML document helper.
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
82 *
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
83 * @param util The helper class for storing map information.
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
84 */
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
85 public void setUtil(MapToXMLUtils util) {
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
86 this.util = util;
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
87 }
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
88
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
89 /**
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
90 * Reads the renderer attributes.
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
91 *
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
92 * @return The XML node.
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
93 */
116
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
94 public Element read() {
31
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
95 logger.debug("read()");
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
96 Element rendererElement;
74
7eba97e8201b Catch all exceptions in the MXDReader.
Raimund Renkert <rrenkert@intevation.de>
parents: 72
diff changeset
97 rendererElement = util.addRenderer(layer);
60
37ff67a4991d Added TODO for line symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 46
diff changeset
98
116
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
99 try {
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
100 rendererElement.setAttribute("label", renderer.getLabel());
31
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
101 }
116
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
102 catch(IOException ioe) {
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
103 logger.warn(
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
104 "Could not read label name." +
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
105 "Setting label name to \"default-label\"");
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
106 rendererElement.setAttribute("label", "default-label");
31
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
107 }
116
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
108
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
109 try {
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
110 rendererElement.setAttribute(
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
111 "description",
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
112 renderer.getDescription());
74
7eba97e8201b Catch all exceptions in the MXDReader.
Raimund Renkert <rrenkert@intevation.de>
parents: 72
diff changeset
113 }
116
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
114 catch(IOException ioe) {
135
a4ab239509f1 Updated the default values and reader error handling.
Raimund Renkert <rrenkert@intevation.de>
parents: 116
diff changeset
115 logger.warn("Could not read description.");
116
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
116 }
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
117
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
118 try {
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
119 symbol = renderer.getSymbol();
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
120
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
121 MarkerSymbolReader markerReader = new MarkerSymbolReader();
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
122 LineSymbolReader lineReader = new LineSymbolReader();
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
123 FillSymbolReader fillReader = new FillSymbolReader();
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
124 if(markerReader.canRead(symbol)) {
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
125 markerReader.setSymbol(symbol);
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
126 markerReader.setUtil(util);
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
127 markerReader.setParent(rendererElement);
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
128 markerReader.read();
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
129 }
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
130 else if(lineReader.canRead(symbol)) {
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
131 lineReader.setSymbol(symbol);
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
132 lineReader.setUtil(util);
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
133 lineReader.setParent(rendererElement);
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
134 lineReader.read();
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
135 }
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
136 else if(fillReader.canRead(symbol)) {
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
137 fillReader.setSymbol(symbol);
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
138 fillReader.setUtil(util);
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
139 fillReader.setParent(rendererElement);
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
140 fillReader.read();
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
141 }
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
142 else {
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
143 logger.debug(
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
144 "No known Symbol type: " +
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
145 symbol.getClass().toString());
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
146 }
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
147 }
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
148 catch(Exception e) {
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
149 logger.error("Could not read symbol. Stopped reading renderer.");
74
7eba97e8201b Catch all exceptions in the MXDReader.
Raimund Renkert <rrenkert@intevation.de>
parents: 72
diff changeset
150 }
7eba97e8201b Catch all exceptions in the MXDReader.
Raimund Renkert <rrenkert@intevation.de>
parents: 72
diff changeset
151 return layer;
25
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
152 }
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
153 }
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
154 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)