[OpenLayers-Users] Hard to click on points for GetFeatureInfo
Dmitri Mizerkin
eisberg at gmail.com
Thu Jul 19 17:03:12 EDT 2007
Hi Marc,
if you are using UMN MapServer, you always have an opportunity to change the
parameters of a class in a mapfile via URL. The URL should look like this:
http://yourhostname/cgi-bin/mapserv.exe?map=yourmapfilepath&REQUEST=GetFeatureInfo&...&layer_youlayername_class_yourclassname_tolerance=5
whereby "yourlayername" and "yourclassname" stay for the layer name and the
class representing the layer as defined in the mapfile.
If you are using another GIS server as for instance GeoServer, that doesn't
support mapfiles and custom classes, you should look for a workaround. I
would suggest to use the GetFeature request (WFS service) instead of
GetFeatureInfo (WMS), because in this case you don't have to explicitly
define the map position (parameters X and Y). Instead of this you only type
a BBOX (minimum and maximum values for latitude and longitude) in your URL,
which defines the area of interest, and the response you get from the server
will contain all the features in this box. The BBOX could easily be computed
via javascript.
If none of those suggestions is helpful, please describe your configuration
and your actions in detail so I could exactly understand what you are doing
and what you're trying to achieve.
Regards,
Dmitri
2007/7/19, Marc Desharnais <marc.desharnais at ec.gc.ca>:
>
> Hi Dmitri,
>
> I tried to make a manual query with this parameter without success.
>
> Usecase (this is part of the query referring to the place where the click
> is made):
> SUCCESS : X=235&Y=503
> FAILURE : X=235&Y=504
> FAILURE : X=235&Y=504&TOLERANCE=5
>
> So the TOLERANCE parameter doesn't affect the query...
>
> I tried to search internet for any wms parameter refering to TOLERANCE but
> could'nt get any information about it. If you can provide any clue about how
> to use it, or any documentation referring to it please help.
>
>
> Thank you :)
>
> Marc
>
>
>
> Dmitri Mizerkin wrote:
>
> Hi Marc,
>
> in a WMS/WFS service request the attribute you are looking for is called
> TOLERANCE. I think this should do it when set as a parameter in
> getFullRequestString function (see user recipies:
> http://trac.openlayers.org/wiki/GetFeatureInfo).
>
> Hopefully it helps you out.
>
> Cheers,
> Dmitri
>
> 2007/7/19, Marc Desharnais < marc.desharnais at ec.gc.ca>:
> >
> > Hi all,
> >
> > I search for an attribute to set to make it easier to click on points to
> >
> > get some info about them.
> > I tried some things like RADIUS or REDIUS (saw that on a page on
> > internet) but nothing works.
> >
> > I just want it to be easier to click on the point if it's possible, a
> > couple of pixels more.
> >
> >
> > Thank in advance,
> >
> > Marc
> > _______________________________________________
> > Users mailing list
> > Users at openlayers.org
> > http://openlayers.org/mailman/listinfo/users
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070719/b84fa6f1/attachment.html
More information about the Users
mailing list