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')
Hope this helps
Cheers
Andrea
--
-------------------------------------------------------
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 962313
http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf
-------------------------------------------------------
------------------------------------------------------------------------------
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