<!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&SERVICE=WFS&VERSION=1.0.0&TYPENAME=your_layer_names&BBOX=your_bbox&MAXFEATURES=10">
http://your_host/geoserver/wfs?REQUEST=GetFeature&SERVICE=WFS&VERSION=1.0.0&TYPENAME=your_layer_names&BBOX=your_bbox&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 <<a
href="mailto:marc.desharnais@ec.gc.ca">marc.desharnais@ec.gc.ca</a>>:</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>
> Hi Bill,<br>
><br>
> that's the right way to do it. What I meant is setting the
tolerance<br>
> via URL, in your case it would be sth like
<br>
> <a
href="http://youhost/...&map_layer_0_tolerance=1&map_layer_0_toleranceunits=feet">http://youhost/...&map_layer_0_tolerance=1&map_layer_0_toleranceunits=feet</a><br>
> <<a
href="http://youhost/...&map_layer_0_tolerance=1&map_layer_0_toleranceunits=feet">
http://youhost/...&map_layer_0_tolerance=1&map_layer_0_toleranceunits=feet</a>><br>
> (I don't know if the underscores in your layer name won't affect
the<br>
> functionality so I'm assuming that it is the first layer in the
<br>
> mapfile and using the index of it). More information can be found
on<br>
> <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>
> last chapter "Changing map file parameters via a form or a URL ".<br>
><br>
> Hopefully it helps Marc with his issue.<br>
><br>
> Regards,<br>
> Dmitri<br>
><br>
> 2007/7/20, Bill Woodall <
<a href="mailto:bwoodall@bwoodall.org">bwoodall@bwoodall.org</a><br>
> <mailto:<a href="mailto:bwoodall@bwoodall.org">bwoodall@bwoodall.org</a>>>:<br>
><br>
> Hi All<br>
><br>
> What has worked for me in using TOLERANCE is to put it into
the
<br>
> mapfile<br>
> ( if you are using MapServer) like ;<br>
><br>
> LAYER<br>
> NAME Scrub_and_Chaparral<br>
> TEMPLATE blank<br>
> TOLERANCE 1<br>
> TOLERANCEUNITS feet
<br>
> METADATA<br>
> "wms_title" "Scrub_and_Chaparral"<br>
> "wms_include_items" "CATEGORY,LEGEND,SOURCE"<br>
> END
<br>
> TYPE POLYGON<br>
> STATUS ON<br>
> DATA Scrub_and_Chaparral<br>
><br>
> ......Bill,<br>
><br>
> On Thu, 2007-07-19 at 20:08 +0200, Dmitri Mizerkin wrote:<br>
> > Hi Marc,<br>
> ><br>
> > in a WMS/WFS service request the attribute you are
looking for is<br>
> > called TOLERANCE. I think this should do it when set as a<br>
> parameter in
<br>
> > getFullRequestString function (see user recipies:<br>
> > <a href="http://trac.openlayers.org/wiki/GetFeatureInfo">http://trac.openlayers.org/wiki/GetFeatureInfo</a>).<br>
> ><br>
> > Hopefully it helps you out.
<br>
> ><br>
> > Cheers,<br>
> > Dmitri<br>
> ><br>
> > 2007/7/19, Marc Desharnais < <a
href="mailto:marc.desharnais@ec.gc.ca">marc.desharnais@ec.gc.ca</a><br>
> <mailto:
<a href="mailto:marc.desharnais@ec.gc.ca">marc.desharnais@ec.gc.ca</a>>>:<br>
> > Hi all,<br>
> ><br>
> > I search for an attribute to set to make it
easier to<br>
> click on
<br>
> > points to<br>
> > get some info about them.<br>
> > I tried some things like RADIUS or REDIUS (saw
that on a<br>
> page<br>
> > on<br>
> > internet) but nothing works.
<br>
> ><br>
> > I just want it to be easier to click on the point
if it's<br>
> > possible, a<br>
> > couple of pixels more.<br>
> ><br>
> >
<br>
> > Thank in advance,<br>
> ><br>
> > Marc<br>
> > _______________________________________________<br>
> > Users mailing list<br>
> > <a href="mailto:Users@openlayers.org">Users@openlayers.org</a>
<mailto:<a href="mailto:Users@openlayers.org">Users@openlayers.org</a>><br>
> > <a
href="http://openlayers.org/mailman/listinfo/users">
http://openlayers.org/mailman/listinfo/users</a><br>
> > _______________________________________________<br>
> > Users mailing list<br>
> > <a href="mailto:Users@openlayers.org">Users@openlayers.org
</a> <mailto:<a href="mailto:Users@openlayers.org">Users@openlayers.org</a>><br>
> > <a href="http://openlayers.org/mailman/listinfo/users">http://openlayers.org/mailman/listinfo/users</a><br>
><br>
<br>
</blockquote>
</div>
</blockquote>
<br>
</body>
</html>