Hi all,

is it possible to define a org.opengis.filter.Filter or 
org.geotools.data.Query with a DE9IM expression ?

Background of question:
I'm writing a little library that either wraps a postgis or a shapefile 
SDI. One function will look like this:

  FeatureCollection<...>  getGeometries(Geometry input, String de9im)

If I just have to define a generic Filter or Query with the DE9IM string 
this would be very easy. But is it possible and does it perform very 
well using spatial index?


If not possible should I proceed this way:

Shapefile:
On http://docs.geotools.org/latest/userguide/library/jts/dim9.html it is 
described how to implement the de9im relation with Geotools / JTS. I 
guess this is the best way for Shapefiledatastore. However, to speed up 
the process, should I read in all Features in advance (on start-up) to 
create PreparedGeometries?

PostGIS:
PostGIS supports DE9IM (ST_RELATE) and will use its spatial index for 
the request (I guess). However, do I have to use JDBC and manually 
create the SQL expression? Or can I use GeoTools for this query?

(Due to compatibility issues I'm using GeoTools 2.6.5.)

Thanks in advance,
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

Reply via email to