On 24/09/13 15:04, Andrea Aime wrote:
On Tue, Sep 24, 2013 at 2:21 PM, Niels Charlier <[email protected] <mailto:[email protected]>> wrote:

    Hello,

    While testing the geoserver csw module, Bart van den Eijnden
    discovered that the ogc 1.1 filter parser does not support
    matchCase in a PropertyIsLike filter. For example this filter:

    ogc:Filter
    xmlns:ogc="http://www.opengis.net/ogc";><ogc:PropertyIsLike
    matchCase="false" wildCard="*" singleChar="."
    
escapeChar="!"><ogc:PropertyName>csw:AnyText</ogc:PropertyName><ogc:Literal>*Tasmania*</ogc:Literal></ogc:PropertyIsLike></ogc:Filter>


    results in:

    <ows:ExceptionReport xmlns:ows="http://www.opengis.net/ows";
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
    version="1.0.0" xsi:schemaLocation="http://www.opengis.net/ows
    http://localhost:8080/geoserver/schemas/ows/1.0.0/owsExceptionReport.xsd";>

      <ows:Exception exceptionCode="NoApplicableCode">
        <ows:ExceptionText>Could not parse XML request.
    cvc-complex-type.3.2.2: Attribute 'matchCase' is not allowed to
    appear in element 'ogc:PropertyIsLike'.</ows:ExceptionText>
      </ows:Exception>
    </ows:ExceptionReport>


    Although this should be supported:
    http://schemas.opengis.net/filter/1.1.0/filter.xsd

    Apparently the OGC did change its schema a while back to support
    this, it was initially not supported IIRC, but now it is.
    Although there is filter 2.0 now, should we not support this?


I don't see a reason not to, besides maybe lack of resources to implement the functionality itself?
But I'd say, if you have the resources, go for it.

The functionality is already there. (This is supported in 2.0 filters). It's just a matter of changing the parser, I'll have a look at it soon.

Niels

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
_______________________________________________
GeoTools-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to