Am 24.06.2011 12:59, schrieb Andrea Aime:
> On Fri, Jun 24, 2011 at 11:21 AM, Matthias Lendholt
> <[email protected]> wrote:
>> Hi all,
>>
>> is it possible to define a org.opengis.filter.Filter or
>> org.geotools.data.Query with a DE9IM expression ?
>
> You should use the "relatePattern" filter function in your filter, but
> beware filter
> functions are evaluated in memory, so you also want to and to it a bbox filter
> that extracts the features that can potentially have some relationship with
> the reference one (the bbox one will be sent to the db/shapefile)
>
> In CQL it would be something like:
>
> bbox('the_geom', x1, y1, y2, y2) and relatePattern('the_geom',
> <reference_geometry>, 'DE9IMPattern')
Thanks for your quick response.
This means I should create one filter this way:
Filter f = CQL.toFilter("BBOX .... AND (then a reference geometry filter.)
OK, I'll try to figure it out. Once a year I'm forced to deal with
filters, expressions, etc. and it's always a challenge :-)
Cheers, Matthias
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense..
http://p.sf.net/sfu/splunk-d2d-c1
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users