On Sunday, May 9, 2010, sunny74 <sb....@hotmail.com> wrote: > > Hi Friends, > > I want to do a search with a buffer. > My scenario is like this. > I get a structure Id from the user and using that I get the geometry of that > structure from the postgres DB. > Now I want to do a search of all structures within a radius of say 100km > from the structure selected by the user. > Is there any postgres function which will give the geometry of all features > lying within a certain radius of a feature.. > > Has anybody done something like this before?If yes pls share as to how you > have done it?
Hi. We do that in MapFish using the && operator, and the expand and distance functions. See [*]. Hope it can help. [*] <http://trac.mapfish.org/trac/mapfish/browser/framework/server/trunk/mapfish/lib/filters/spatial.py#L101> -- Eric Lemoine Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel : 00 33 4 79 44 44 96 Mail : eric.lemo...@camptocamp.com http://www.camptocamp.com _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users