Thank you for your help.

Suppose I'm running the query a lot so I loaded all the geometries into
FeatureCollection.

FeatureCollection<SimpleFeatureType,SimpleFeature> collection =
ds.getFeatureSource( "all_polygons" ).getFeatures( filter );

And I'm doing queries like: check if this LineString intersect a polygon in
another polygon table.
Would it be faster than your example to loop through the collection I have
and end the loop if I find an intersection?




mbedward wrote:
> 
> Sorry - I see that actually the dud line was duplicated by a correct
> one in the original post.
> 
> Coffee time.
> 
> ------------------------------------------------------------------------------
> This SF.Net email is sponsored by the Verizon Developer Community
> Take advantage of Verizon's best-in-class app development support
> A streamlined, 14 day to market process makes app distribution fast and
> easy
> Join now and get one step closer to millions of Verizon customers
> http://p.sf.net/sfu/verizon-dev2dev 
> _______________________________________________
> Geotools-gt2-users mailing list
> Geotools-gt2-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
> 
> 

-- 
View this message in context: 
http://n2.nabble.com/Beginner-question-about-feature-query-tp4295864p4322658.html
Sent from the geotools-gt2-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to