Solution is to disable "<span><label class="choice"><span>Loose bbox"</span></label></span> in Geoserver's Datastore<br><br><div class="gmail_quote">2011/2/10 Alex <span dir="ltr"><<a href="mailto:zeitalex@googlemail.com">zeitalex@googlemail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><span style="font-size: 12pt; font-family: "Times New Roman";" lang="EN-GB">Dear Charles,<br>
Thank you very much for your answer.<br>Yes, I tried. I even set
it to 0. It does not change anything. The problem is that selection is done on
the base of the Bounding Box of a Line. In some cases if user clicks near one
line then another (longer) line located far from mouse click is selected. It is due to fact that mouse click is inside of the BBox of the longer
line and not inside of the line that is closer to the click point. I desperately
trying to figure out how to disable BBox based selection. I don’t know why it
is default behaviour, it is so confusing. </span><span style="font-size: 12pt; font-family: "Times New Roman";" lang="EN-GB">Probably </span><span style="font-size: 12pt; font-family: "Times New Roman";" lang="EN-GB">the reason is that BBox based
selection is faster. But why there is no easy way to change this default behaviour?</span><br><br><div class="gmail_quote">2011/2/10 Charles Galpin <span dir="ltr"><<a href="mailto:cgalpin@lhsw.com" target="_blank">cgalpin@lhsw.com</a>></span><div>
<div></div><div class="h5"><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Have you tried a lower "clickTolerance"? The default is 5 pixels.<br>
<br>
hth,<br>
<font color="#888888">charles<br>
</font><div><div></div><div><br>
On Feb 10, 2011, at 5:46 AM, Alex wrote:<br>
<br>
> We use Geoserver with PostGIS and OpenLayers to display a river network as WMS Layer. The user should be able to click on the river and get its name as Popup. It is no problem so far. But if one is clicking between several rivers then selection becomes very confusing. In some cases rivers that are located much farer from mouse click then others are selected<br>
<br>
</div></div></blockquote></div></div></div><br>
</blockquote></div><br>