annotate src/java/de/intevation/mxd/reader/UniqueValueRendererReader.java @ 148:2bf35f0babd0

Implemented new group layer functionality.
author vc11884admin@VC11884.win.bsh.de
date Wed, 29 Jun 2011 17:45:50 +0200
parents acc9e5430177
children 1623c8c99135
rev   line source
33
c51376f8e24c Separated converter components into packages.
Raimund Renkert <rrenkert@intevation.de>
parents: 31
diff changeset
1 package de.intevation.mxd.reader;
25
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
2
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
3 import org.apache.log4j.Logger;
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
4
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
5 import com.esri.arcgis.carto.IFeatureRenderer;
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
6 import com.esri.arcgis.display.ISymbol;
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
7 import com.esri.arcgis.carto.UniqueValueRenderer;
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
8
31
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
9 import org.w3c.dom.Element;
116
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
10 import java.io.IOException;
31
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
11
33
c51376f8e24c Separated converter components into packages.
Raimund Renkert <rrenkert@intevation.de>
parents: 31
diff changeset
12 import de.intevation.mxd.utils.MapToXMLUtils;
c51376f8e24c Separated converter components into packages.
Raimund Renkert <rrenkert@intevation.de>
parents: 31
diff changeset
13
25
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
14 /**
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
15 * Reads unique vaule renderer information.
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
16 *
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
17 * @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
18 */
31
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
19 public class UniqueValueRendererReader
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
20 implements IRendererReader {
25
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
21
31
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
22 /**
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
23 * The logger.
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
24 */
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
25 private static final Logger logger =
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
26 Logger.getLogger(FeatureLayerReader.class);
25
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 /**
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
29 * Private Member.
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
30 */
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
31 private UniqueValueRenderer renderer;
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
32 private Element layer;
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
33 private MapToXMLUtils util;
25
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
34
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
35
31
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
36 public UniqueValueRendererReader(IFeatureRenderer renderer)
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
37 throws Exception {
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
38 logger.debug("constructor()");
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
39 if (renderer instanceof UniqueValueRenderer) {
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
40 this.renderer = (UniqueValueRenderer)renderer;
25
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
41 }
31
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
42 else {
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
43 throw new Exception ("Not an instance of UniqueValueRenderer.");
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
44 }
25
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
45 }
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
46
31
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 * Setter for the parent XML element.
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
49 *
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
50 * @param parent The XML parent node.
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
51 */
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
52 public void setParent(Element parent) {
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
53 this.layer = parent;
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
54 }
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
55
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
56 /**
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
57 * Setter for XML document helper.
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
58 *
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
59 * @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
60 */
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
61 public void setUtil(MapToXMLUtils util) {
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
62 this.util = util;
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
63 }
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
64
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
65 /**
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
66 * Reads the renderer attributes.
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
67 *
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
68 * @return The parent XML node.
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
69 */
116
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
70 public Element read() {
31
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
71 logger.debug("read()");
116
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
72 int count = 0;
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
73 try {
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
74 count = renderer.getClassCount();
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
75 }
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
76 catch(IOException ioe) {
117
6c3d880db7c5 Improved exception handling for layer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 116
diff changeset
77 logger.error(
6c3d880db7c5 Improved exception handling for layer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 116
diff changeset
78 "Could not read class count."+
6c3d880db7c5 Improved exception handling for layer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 116
diff changeset
79 " Stopped reading renderer.");
116
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
80 return layer;
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
81 }
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
82 for(int i = 0; i < count - 1; i++) {
74
7eba97e8201b Catch all exceptions in the MXDReader.
Raimund Renkert <rrenkert@intevation.de>
parents: 73
diff changeset
83 Element rendererElement = util.addRenderer(layer);
73
acbe36fb45e0 Use the wrapper in the renderer reader to read symbols.
Raimund Renkert <rrenkert@intevation.de>
parents: 70
diff changeset
84
116
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
85 try {
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
86 String value = renderer.getValue(i);
134
acc9e5430177 Handle SDE connection attributes and expressions.
vc11884admin@VC11884.win.bsh.de
parents: 117
diff changeset
87 value = value.replaceAll(" ", "");
acc9e5430177 Handle SDE connection attributes and expressions.
vc11884admin@VC11884.win.bsh.de
parents: 117
diff changeset
88 if(value.indexOf(",") > 0) {
acc9e5430177 Handle SDE connection attributes and expressions.
vc11884admin@VC11884.win.bsh.de
parents: 117
diff changeset
89 int j = 0;
acc9e5430177 Handle SDE connection attributes and expressions.
vc11884admin@VC11884.win.bsh.de
parents: 117
diff changeset
90 while(value.indexOf(",") > 0) {
acc9e5430177 Handle SDE connection attributes and expressions.
vc11884admin@VC11884.win.bsh.de
parents: 117
diff changeset
91 String v = value.substring(0, value.indexOf(","));
acc9e5430177 Handle SDE connection attributes and expressions.
vc11884admin@VC11884.win.bsh.de
parents: 117
diff changeset
92 rendererElement.setAttribute("value_" + j, v);
acc9e5430177 Handle SDE connection attributes and expressions.
vc11884admin@VC11884.win.bsh.de
parents: 117
diff changeset
93 value = value.substring(
acc9e5430177 Handle SDE connection attributes and expressions.
vc11884admin@VC11884.win.bsh.de
parents: 117
diff changeset
94 value.indexOf(",") + 1,
acc9e5430177 Handle SDE connection attributes and expressions.
vc11884admin@VC11884.win.bsh.de
parents: 117
diff changeset
95 value.length());
acc9e5430177 Handle SDE connection attributes and expressions.
vc11884admin@VC11884.win.bsh.de
parents: 117
diff changeset
96 j++;
acc9e5430177 Handle SDE connection attributes and expressions.
vc11884admin@VC11884.win.bsh.de
parents: 117
diff changeset
97 }
acc9e5430177 Handle SDE connection attributes and expressions.
vc11884admin@VC11884.win.bsh.de
parents: 117
diff changeset
98 rendererElement.setAttribute("value_" + j, value);
acc9e5430177 Handle SDE connection attributes and expressions.
vc11884admin@VC11884.win.bsh.de
parents: 117
diff changeset
99 }
acc9e5430177 Handle SDE connection attributes and expressions.
vc11884admin@VC11884.win.bsh.de
parents: 117
diff changeset
100 else {
acc9e5430177 Handle SDE connection attributes and expressions.
vc11884admin@VC11884.win.bsh.de
parents: 117
diff changeset
101 rendererElement.setAttribute("value", value);
acc9e5430177 Handle SDE connection attributes and expressions.
vc11884admin@VC11884.win.bsh.de
parents: 117
diff changeset
102 }
acc9e5430177 Handle SDE connection attributes and expressions.
vc11884admin@VC11884.win.bsh.de
parents: 117
diff changeset
103
acc9e5430177 Handle SDE connection attributes and expressions.
vc11884admin@VC11884.win.bsh.de
parents: 117
diff changeset
104 value = renderer.getValue(i);
116
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
105 rendererElement.setAttribute("name", renderer.esri_getClass(i));
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
106 rendererElement.setAttribute("description",
134
acc9e5430177 Handle SDE connection attributes and expressions.
vc11884admin@VC11884.win.bsh.de
parents: 117
diff changeset
107 renderer.getDescription(value));
acc9e5430177 Handle SDE connection attributes and expressions.
vc11884admin@VC11884.win.bsh.de
parents: 117
diff changeset
108
116
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
109 rendererElement.setAttribute("label", renderer.getLabel(value));
74
7eba97e8201b Catch all exceptions in the MXDReader.
Raimund Renkert <rrenkert@intevation.de>
parents: 73
diff changeset
110 rendererElement.setAttribute(
116
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
111 "field_count",
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
112 String.valueOf(renderer.getFieldCount()));
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
113 for(int j = 0; j < renderer.getFieldCount(); j++) {
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
114 rendererElement.setAttribute(
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
115 "expression_field_" + j,
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
116 renderer.getField(j));
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 rendererElement.setAttribute("expression_operator", "=");
74
7eba97e8201b Catch all exceptions in the MXDReader.
Raimund Renkert <rrenkert@intevation.de>
parents: 73
diff changeset
119
116
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
120 ISymbol sym = renderer.getSymbol(value);
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(sym)) {
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
125 markerReader.setSymbol(sym);
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(sym)) {
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
131 lineReader.setSymbol(sym);
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(sym)) {
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
137 fillReader.setSymbol(sym);
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("Not a known symbol type: " +
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
144 sym.getClass().toString());
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
145 }
74
7eba97e8201b Catch all exceptions in the MXDReader.
Raimund Renkert <rrenkert@intevation.de>
parents: 73
diff changeset
146 }
116
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
147 catch(Exception e) {
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
148 logger.error(
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
149 "Could not read unique value data." +
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
150 e.toString());
c8a1361ddd38 Improved exceptionhandlin for renderer reader.
Raimund Renkert <rrenkert@intevation.de>
parents: 83
diff changeset
151 return layer;
31
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
152 }
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
153 }
40c0b4e5f91a Added utility class to store map attributes.
Raimund Renkert <rrenkert@intevation.de>
parents: 26
diff changeset
154 return layer;
25
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
155 }
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
156 }
cbd67b1100d8 Initial commit of the first prototype.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
157 // 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)