Hi, What you want is more difficult than I realised. If you can retrieve the geometry of the feature you are interested in, you could use that in your filter (instead of the point). Have a look at the getfeature-wfs example on how to do that [1]. If you cannot retrieve your geometry it's going to be harder.
I don't know if you can tell your WFS server to use the geometry of a certain feature for your spatial operator (like: give me all features from layer X within a buffer around this feature from layer Y (or are all features in the same layer?)). Maybe somebody else can shed a light on whether this is possible? I'm sure you could do it with a WPS server, but that adds extra complexity. Regards, Roald [1] http://www.openlayers.org/dev/examples/getfeature-wfs.html On 12/05/10 05:10, sunny74 wrote: > Hi Roald, > > Thanks for your reply. > If I have the center point of the selected region then your code will do the > rest. > But the problem is that when the box is drawn using the GEtFeature control > it is not possible to get center point of the selected region or the bounds > of the selected region. > If either of these were available then it would have been possible to draw a > layer over the selected region.(this is wrt 'drawing a polygon over selected > region'). > > w .r.t this post I have a structure ID using which I can get the geometry > from the postgres table.Since I get this geometry on the server side I need > to get the other geometries and their attributes on the server side as well. > > I am not sure how get feature can help me when my selected geometry is on > the server side. > As far as I know getfeature works only when I select multiple features on a > wfs layer. > Is it possible to pass the geometry to getfeature control and get other > feature details within a certain radius. > > Thanks. > _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
