[OpenLayers-Users] WMSGetFeatureInfo + xy mouse coordinates, can
this be done?
Ian Turton
ijturton at gmail.com
Tue Mar 1 14:45:27 EST 2011
On 1 March 2011 14:30, Andrew Stewart <Andrew.Stewart at reddeer.ca> wrote:
> Alexandre - I am using Intergraph products and unfortunately their server
> does not have anything related to tolerance (according to their developers).
>
> Ian - thanks for the advice. Maybe I am misunderstanding this but say I
> increase the size of the symbol related to the feature I want to get info
> about through my WMS. Well I write that to my web service except only the
> exact center point of the symbol returns anything. So I can possibly use the
> WFS GetFeature info to initiate the request from my WFS layer by using the
> coordinates of the larger WMS symbol? I'm just confused how to accomplish
> this.. how would I know the mouse is over the WMS symbol since there is no
> feature info returned properly unless I am at the center?
>
Look at http://openlayers.org/dev/examples/getfeature-wfs.html for an
example combining WMS and WFS. The usual way to handle your problem is
to make a small box around the mouse click and make a WFS getFeature
request using the box.
Ian
--
Ian Turton
More information about the Users
mailing list