On Mon, Feb 3, 2014 at 1:27 PM, Jody Garnett <jody.garn...@gmail.com> wrote:
> Am I missing something? Could we represent not( attribute > 3 ) as
> attribute <= 3 ?
>
> It would involve some logic to identify the appropriate inverse of our
> filters, but it may be worth it.
>
Yes, that is also a way, but more work would be required, we'd have to
apply De Morgan laws
(http://en.wikipedia.org/wiki/De_Morgan's_laws)
to transform complex and/or sequences in direct negations, e.g., if you have
not(a > 3 and b = 5 and c <= 10)
you'd first have to turn it into:
not(a > 3) or not(b = 5) or not(c <= 10)
and then finally:
a <=3 or b < 5 or b > 5 or c > 10
Doable, also more work, and thus also a bit more error prone.
But if people think this road it to be preferred, I can also go here, at
least for simple
comparisons (but I would not go there for the negation of spatial filters)
Cheers
Andrea
--
== Our support, Your Success! Visit http://opensdi.geo-solutions.it for
more information ==
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
-------------------------------------------------------
------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel