[udig-devel] Filter Styling
Jody Garnett
jgarnett at refractions.net
Wed Aug 22 13:36:49 PDT 2007
Jesse Eichar wrote:
> Hi I think there is a Regular expression that you can create some how
> as well. Oh right it is the Like filter.
You are correct, you can also ask some of the property filters to ignore
case.
Matching case is generally a good thing; this is machine readable data
you are talking about using here after all, you are trying to be
exacting when rendering - cleaning up data is a separate step.
Jody
>
> Jesse
>
> On Aug 22, 2007, at 6:13 AM, Andy Cox wrote:
>
>> 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
>>
>> _______________________________________________
>> User-friendly Desktop Internet GIS (uDig)
>> http://udig.refractions.net
>> http://lists.refractions.net/mailman/listinfo/udig-devel
>
> _______________________________________________
> User-friendly Desktop Internet GIS (uDig)
> http://udig.refractions.net
> http://lists.refractions.net/mailman/listinfo/udig-devel
More information about the udig-devel
mailing list