Hey geotools wizards, I was recently setting up some examples for some users of our new 1.5.x based geoserver install, and came across an example that used to work, but no longer does.
It was an SLD layer with a UserStyle with a filter like: <Filter xmlns="http://www.opengis.net/ogc"> <And> <PropertyIsNotEqualTo> <PropertyName>COUNTY</PropertyName> <Literal>BARNSTABLE</Literal> </PropertyIsNotEqualTo> <PropertyIsNotEqualTo> <PropertyName>COUNTY</PropertyName> <Literal>MIDDLESEX</Literal> </PropertyIsNotEqualTo> </And> </Filter> Unfortunately it didn't work. I think the culprit is that IsNotEqualToImpl throws an UnsupportedOperationException in its accept() method, because org.opengis.filter.FilterVisitor doesn't have a visit(PropertyIsNotEqualTo,Object) method. Is this an oversight, or is there some specification-based reason why PropertyIsNotEqualTo is omitted from the geoapi snapshot? There's even a note in the code from Justin saying something like, "Do we need a PropertyIsNotEqualTo interface?" It's worth noting that PropertyIsNotEqualTo is an extraneous operation, as you can re-write any "PropertyIsNotEqualTo" as a "Not->PropertyIsEqualTo". Of course, by this logic, "Or" is likewise extraneous as NAND gives you the complete space of boolean logic, right? I can re-write the Filter XML -> internal rep parser to generate "NOT->PropertyIsEqualTo" constructs, rather than using the PropertyIsNotEqualTo construct, but this seems like a lot of work if it's an oversight. Any chance a new version of geoapi that fixes this is out there somewhere and that someone might be committing it to gt-2.3.x anytime soon? Thanks all! --saul ------------------------------------------------------------------------- SF.net email is sponsored by: A Better Job is Waiting for You - Find it Now. Check out Slashdot's new job board. Browse through tons of technical jobs posted by companies looking to hire people just like you. http://jobs.slashdot.org/ _______________________________________________ Geotools-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-devel
