[udig-devel] Filter Styling

Andy Cox ivyavenue at hotmail.com
Wed Aug 22 06:13:40 PDT 2007


Hello,

I have come across an interesting "feature" in that if you try and style a
layer based on a filter e.g.

CompareFilter compareFilter =
filterFactory.createCompareFilter(Filter.COMPARE_EQUALS);  	
	
compareFilter.addLeftValue(filterFactory.createAttributeExpression("name"));
compareFilter.addRightValue(filterFactory.createLiteralExpression("Point1"))
;

Then the case of the field name and the attribute value must match exactly
with what appears in the table. This makes it difficult to create generic
renders as you always need to know the case of the field name and attributes
before hand.

Is this correct or am I doing something wrong?

Thanks
Andy



More information about the udig-devel mailing list