Allow expressions as the "property" field in PropertyIsLike filters
-------------------------------------------------------------------

                 Key: GEOT-2396
                 URL: http://jira.codehaus.org/browse/GEOT-2396
             Project: GeoTools
          Issue Type: Bug
            Reporter: David Winslow
         Attachments: propertyislike.patch, wfs-caseinsensitive.xml

If you have a filter like:
            <ogc:PropertyIsLike wildCard="*" singleChar="." escapeChar="\">
                <ogc:Function name="strToUpperCase">
                    <ogc:PropertyName>STATE_NAME</ogc:PropertyName>
                </ogc:Function>
                <ogc:Function name="strToUpperCase">
                    <ogc:Literal>AlabaMA</ogc:Literal>
                </ogc:Function>
            </ogc:PropertyIsLike>

Then the GeoTools parser fails with an NPE.  The analogous query with a 
<PropertyIsEqualTo> filter succeeds, so I would expect this to as well.

I've attached a patch that makes the propertyislike parser act more like the 
propertyisequalto one.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to