95 |
final String propertyName = pn.getPropertyName(); |
final String propertyName = pn.getPropertyName(); |
96 |
return schema.getDescriptor(propertyName); |
return schema.getDescriptor(propertyName); |
97 |
} else { |
} else { |
98 |
// When does this happen |
return null; |
|
throw new RuntimeException("labelExp " + labelExp |
|
|
+ " IS NOT instanceof PropertyName!"); |
|
99 |
} |
} |
100 |
|
|
101 |
} |
} |
155 |
.getTextSymbolizer(ml.getStyle(), f); |
.getTextSymbolizer(ml.getStyle(), f); |
156 |
if (ts == null) |
if (ts == null) |
157 |
continue; |
continue; |
158 |
|
|
159 |
// TODO Evaluate the Rule that belongs to the |
// TODO Evaluate the Rule that belongs to the |
160 |
// TextSymbolizer against the feature... |
SimpleFeatureType schema = featureSource.getSchema(); |
161 |
final AttributeDescriptor labelAttribute = getLabelAttribute( |
PropertyName pn = StylingUtil.getFirstPropertyName( |
162 |
ts, featureSource.getSchema()); |
schema, ts); |
163 |
|
if (pn == null) continue; |
164 |
if (labelAttribute == null) { |
|
165 |
continue; |
final AttributeDescriptor labelAttribute = schema |
166 |
} |
.getDescriptor(pn.getPropertyName()); |
|
|
|
|
// System.out.println("labelAttrib local name" + |
|
|
// labelAttribute.getLocalName()); |
|
167 |
|
|
168 |
final Object value = f.getAttribute(labelAttribute |
final Object value = f.getAttribute(labelAttribute |
169 |
.getLocalName()); |
.getLocalName()); |
170 |
|
|
|
// System.out.println("labelAttrib value " + value); |
|
|
|
|
171 |
if (value == null) { |
if (value == null) { |
172 |
LOGGER |
LOGGER |
173 |
.info("Skipping f: getLocalName() is null for feature=" |
.info("Skipping f: getLocalName() is null for feature=" |