<!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>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I have the same problem with getfeatureinfo on line 
data using MapGuide Open Source WMS and OpenLayers.&nbsp;&nbsp; I think it's a 
bug in MapGuide.&nbsp; Polygon queries work OK.</FONT></DIV>
<DIV>&nbsp;</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&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="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>&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;&nbsp;&nbsp;&nbsp;&nbsp; 
      Hi All<BR>&gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; What has worked for me in 
      using TOLERANCE is to put it into the <BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
      mapfile<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; ( if you are using MapServer) like 
      ;<BR>&gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
      LAYER<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
      NAME 
      Scrub_and_Chaparral<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
      TEMPLATE 
      blank<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
      TOLERANCE 
      1<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
      TOLERANCEUNITS feet 
      <BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
      METADATA<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
      "wms_title" 
      "Scrub_and_Chaparral"<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
      "wms_include_items"&nbsp;&nbsp;"CATEGORY,LEGEND,SOURCE"<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
      END 
      <BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
      TYPE 
      POLYGON<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
      STATUS 
      ON<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
      DATA Scrub_and_Chaparral<BR>&gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
      ......Bill,<BR>&gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; On Thu, 2007-07-19 at 
      20:08 +0200, Dmitri Mizerkin wrote:<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; 
      Hi Marc,<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
      &gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; in a WMS/WFS service request the 
      attribute you are looking for is<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; 
      called TOLERANCE. I think this should do it when set as 
      a<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; parameter in 
      <BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; getFullRequestString function (see 
      user recipies:<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; <A 
      href="http://trac.openlayers.org/wiki/GetFeatureInfo">http://trac.openlayers.org/wiki/GetFeatureInfo</A>).<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
      &gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; Hopefully it helps you out. 
      <BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; 
      Cheers,<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; 
      Dmitri<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
      &gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; 2007/7/19, Marc Desharnais &lt; 
      <A 
      href="mailto:marc.desharnais@ec.gc.ca">marc.desharnais@ec.gc.ca</A><BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
      &lt;mailto: <A 
      href="mailto:marc.desharnais@ec.gc.ca">marc.desharnais@ec.gc.ca</A>&gt;&gt;:<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
      &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Hi 
      all,<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
      &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I search for an 
      attribute to set to make it easier to<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
      click on <BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
      &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; points 
      to<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
      &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; get some info about 
      them.<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
      &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I tried some things 
      like RADIUS or REDIUS (saw that on a<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
      page<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
      &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
      on<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
      &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; internet) but nothing 
      works. <BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
      &gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
      &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I just want it to be 
      easier to click on the point if it's<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
      &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; possible, 
      a<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
      &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; couple of pixels 
      more.<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
      &gt; <BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
      &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Thank in 
      advance,<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
      &gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
      &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
      Marc<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
      &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
      _______________________________________________<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
      &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Users mailing 
      list<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
      &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <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;&nbsp;&nbsp;&nbsp;&nbsp; 
      &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <A 
      href="http://openlayers.org/mailman/listinfo/users">http://openlayers.org/mailman/listinfo/users</A><BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
      &gt; 
      _______________________________________________<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
      &gt; Users mailing list<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &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;&nbsp;&nbsp;&nbsp;&nbsp; 
      &gt; <A 
      href="http://openlayers.org/mailman/listinfo/users">http://openlayers.org/mailman/listinfo/users</A><BR>&gt;<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>