<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi all,<br>
<br>
For the record, I asked the geoserver team and it seems that no such
options exists for now. The problem is that for now they do a getinfo
on the coordonates of the geometry (a point in my case) instead of the
representation (likely a circle for me). The representation is larger
than the geometry so you get the feeling you can click anywhere in the
cercle to get info. <br>
<br>
By reality is really different ;)<br>
<br>
This issue is opened in their bug base so I guess it will be fixed in
the next versions.<br>
<br>
<br>
Regards,<br>
<br>
<br>
Marc<br>
<br>
<br>
<br>
<br>
<br>
Dmitri Mizerkin wrote:
<blockquote
 cite="mid54584fb80707200558i15347286r5bbcce5a15b76d67@mail.gmail.com"
 type="cite">Mi Marc,<br>
  <br>
so you have to request feature from the server, not feature info.<br>
  <br>
A click event on a map returns the values for x and y in the view port.
You should make a box of those adding and substracting a custom
tolerance value. After you've done so you got 4 values: minx = x -
tolerance, miny = y - tolerance, maxx = x + tolerance, maxy = y +
tolerance. These can be converted to latitude-longitude values using
OpenLayers (
map.getLonLatFromViewPortPx function). After all of these actions you
get your BBOX so you can send a request to the geoserver like this: <a
 href="http://your_host/geoserver/wfs?REQUEST=GetFeature&amp;SERVICE=WFS&amp;VERSION=1.0.0&amp;TYPENAME=your_layer_names&amp;BBOX=your_bbox&amp;MAXFEATURES=10">
http://your_host/geoserver/wfs?REQUEST=GetFeature&amp;SERVICE=WFS&amp;VERSION=1.0.0&amp;TYPENAME=your_layer_names&amp;BBOX=your_bbox&amp;MAXFEATURES=10</a><br>
  <br>
That's the only workaround I know.<br>
  <br>
Cheers,<br>
Dmitri
  <br>
  <br>
  <div><span class="gmail_quote">2007/7/20, Marc Desharnais &lt;<a
 href="mailto:marc.desharnais@ec.gc.ca">marc.desharnais@ec.gc.ca</a>&gt;:</span>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi
all,<br>
    <br>
I'm using geoserver so I guess your solution won't work. Anyone has an<br>
idea about setting a tolerance level in geoserver?<br>
Or anything that would make it easier to click on a point of a map with
    <br>
geoserver.<br>
    <br>
    <br>
Thanks,<br>
    <br>
Marc<br>
    <br>
    <br>
Dmitri Mizerkin wrote:<br>
&gt; Hi Bill,<br>
&gt;<br>
&gt; that's the right way to do it. What I meant is setting the
tolerance<br>
&gt; via URL, in your case it would be sth like
    <br>
&gt; <a
 href="http://youhost/...&amp;map_layer_0_tolerance=1&amp;map_layer_0_toleranceunits=feet">http://youhost/...&amp;map_layer_0_tolerance=1&amp;map_layer_0_toleranceunits=feet</a><br>
&gt; &lt;<a
 href="http://youhost/...&amp;map_layer_0_tolerance=1&amp;map_layer_0_toleranceunits=feet">
http://youhost/...&amp;map_layer_0_tolerance=1&amp;map_layer_0_toleranceunits=feet</a>&gt;<br>
&gt; (I don't know if the underscores in your layer name won't affect
the<br>
&gt; functionality so I'm assuming that it is the first layer in the
    <br>
&gt; mapfile and using the index of it). More information can be found
on<br>
&gt; <a href="http://mapserver.gis.umn.edu/docs/reference/cgi/controls">http://mapserver.gis.umn.edu/docs/reference/cgi/controls</a>
in the very
    <br>
&gt; last chapter "Changing map file parameters via a form or a URL ".<br>
&gt;<br>
&gt; Hopefully it helps Marc with his issue.<br>
&gt;<br>
&gt; Regards,<br>
&gt; Dmitri<br>
&gt;<br>
&gt; 2007/7/20, Bill Woodall &lt;
    <a href="mailto:bwoodall@bwoodall.org">bwoodall@bwoodall.org</a><br>
&gt; &lt;mailto:<a href="mailto:bwoodall@bwoodall.org">bwoodall@bwoodall.org</a>&gt;&gt;:<br>
&gt;<br>
&gt;     Hi All<br>
&gt;<br>
&gt;     What has worked for me in using TOLERANCE is to put it into
the
    <br>
&gt;     mapfile<br>
&gt;     ( if you are using MapServer) like ;<br>
&gt;<br>
&gt;         LAYER<br>
&gt;             NAME Scrub_and_Chaparral<br>
&gt;             TEMPLATE blank<br>
&gt;             TOLERANCE 1<br>
&gt;             TOLERANCEUNITS feet
    <br>
&gt;             METADATA<br>
&gt;                 "wms_title" "Scrub_and_Chaparral"<br>
&gt;                 "wms_include_items"  "CATEGORY,LEGEND,SOURCE"<br>
&gt;             END
    <br>
&gt;             TYPE POLYGON<br>
&gt;             STATUS ON<br>
&gt;             DATA Scrub_and_Chaparral<br>
&gt;<br>
&gt;     ......Bill,<br>
&gt;<br>
&gt;     On Thu, 2007-07-19 at 20:08 +0200, Dmitri Mizerkin wrote:<br>
&gt;     &gt; Hi Marc,<br>
&gt;     &gt;<br>
&gt;     &gt; in a WMS/WFS service request the attribute you are
looking for is<br>
&gt;     &gt; called TOLERANCE. I think this should do it when set as a<br>
&gt;     parameter in
    <br>
&gt;     &gt; getFullRequestString function (see user recipies:<br>
&gt;     &gt; <a href="http://trac.openlayers.org/wiki/GetFeatureInfo">http://trac.openlayers.org/wiki/GetFeatureInfo</a>).<br>
&gt;     &gt;<br>
&gt;     &gt; Hopefully it helps you out.
    <br>
&gt;     &gt;<br>
&gt;     &gt; Cheers,<br>
&gt;     &gt; Dmitri<br>
&gt;     &gt;<br>
&gt;     &gt; 2007/7/19, Marc Desharnais &lt; <a
 href="mailto:marc.desharnais@ec.gc.ca">marc.desharnais@ec.gc.ca</a><br>
&gt;     &lt;mailto:
    <a href="mailto:marc.desharnais@ec.gc.ca">marc.desharnais@ec.gc.ca</a>&gt;&gt;:<br>
&gt;     &gt;         Hi all,<br>
&gt;     &gt;<br>
&gt;     &gt;         I search for an attribute to set to make it
easier to<br>
&gt;     click on
    <br>
&gt;     &gt;         points to<br>
&gt;     &gt;         get some info about them.<br>
&gt;     &gt;         I tried some things like RADIUS or REDIUS (saw
that on a<br>
&gt;     page<br>
&gt;     &gt;         on<br>
&gt;     &gt;         internet) but nothing works.
    <br>
&gt;     &gt;<br>
&gt;     &gt;         I just want it to be easier to click on the point
if it's<br>
&gt;     &gt;         possible, a<br>
&gt;     &gt;         couple of pixels more.<br>
&gt;     &gt;<br>
&gt;     &gt;
    <br>
&gt;     &gt;         Thank in advance,<br>
&gt;     &gt;<br>
&gt;     &gt;         Marc<br>
&gt;     &gt;         _______________________________________________<br>
&gt;     &gt;         Users mailing list<br>
&gt;     &gt;         <a href="mailto:Users@openlayers.org">Users@openlayers.org</a>
&lt;mailto:<a href="mailto:Users@openlayers.org">Users@openlayers.org</a>&gt;<br>
&gt;     &gt;         <a
 href="http://openlayers.org/mailman/listinfo/users">
http://openlayers.org/mailman/listinfo/users</a><br>
&gt;     &gt; _______________________________________________<br>
&gt;     &gt; Users mailing list<br>
&gt;     &gt; <a href="mailto:Users@openlayers.org">Users@openlayers.org
    </a> &lt;mailto:<a href="mailto:Users@openlayers.org">Users@openlayers.org</a>&gt;<br>
&gt;     &gt; <a href="http://openlayers.org/mailman/listinfo/users">http://openlayers.org/mailman/listinfo/users</a><br>
&gt;<br>
    <br>
  </blockquote>
  </div>
</blockquote>
<br>
</body>
</html>