Gabriella Turek wrote: > Hey, I am just getting some results now! So it does work, but if the units > make no difference, what units is the distance supposed to be in? > Gaby > > PS My feature sets is so huge though, for both A and B (both point types), so > now that the filters work, it was still > a while before it found some points bnear to some other. Any other way to > approach this issue? I would think when you're dealing with hude data sets > like this it may be better to deal with them in a DB and use the DB to do the > joins first? > You are correct this kind of thing is what PostGIS was made for :-)
If one of your data sets is small enough you may be able to use it as the "inner" collection and get a speed up; also you should be able to use a JTS spatial index of some sort to get a large speed improvement; even larger if we can talk Martin into releasing the next version (which has a "PrepairedGeometry" construct so we can store the graph used by the outer geometry between and use it to test multiple inner geometries). If you can use a bounding box filter (making a square bounding box around your point) will be a *lot* faster than the use of beyond. Cheers, Jody ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Geotools-gt2-users mailing list Geotools-gt2-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users