Issue Type: Bug Bug
Assignee: Unassigned
Created: 22/Mar/13 10:21 AM
Description:

In a project I'm working we are using GeoServer 2.2.4 which in turn uses GeoTools 8.6. We expose labels on a number of WMS layers. A number of this layers refers to properties which are not defined for each and every feature (such as a description field). When it happens that a property is undefined the label is not displayed in the WMS even though the label also refers to other properties of the feature that happens to be defined.

It this not a bug?

We have made a patch for the evaluate function of AttributeExpressionImpl so that it returns the empty string if the value of the property is undefined and would like it to be part of the code base (if possible).

We believe the following code should be inserted just before the "if (target == null)" statement:

if (value.get() == null && target != null && target.isAssignableFrom(String.class))

{ return ""; }
Project: GeoTools
Priority: Minor Minor
Reporter: Rolf Thunbo
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
GeoTools-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to