<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content=text/html;charset=UTF-8>
<META content="MSHTML 6.00.2900.3132" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY text=#000000 bgColor=#ffffff>
<DIV><FONT face=Arial size=2>All,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I have the same problem with getfeatureinfo on line
data using MapGuide Open Source WMS and OpenLayers. I think it's a
bug in MapGuide. Polygon queries work OK.</FONT></DIV>
<DIV> </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=marc.desharnais@ec.gc.ca href="mailto:marc.desharnais@ec.gc.ca">Marc
Desharnais</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=users@openlayers.org
href="mailto:users@openlayers.org">users@openlayers.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, July 20, 2007 9:21 AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [OpenLayers-Users] Hard to
click on points for GetFeatureInfo</DIV>
<DIV><BR></DIV>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="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">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>
<P>
<HR>
<P></P>_______________________________________________<BR>Users mailing
list<BR>Users@openlayers.org<BR>http://openlayers.org/mailman/listinfo/users<BR></BLOCKQUOTE></BODY></HTML>