TOLERANCEUNITS problem

Ken Lord kenlord at GMAIL.COM
Tue Dec 14 16:24:25 PST 2004


Hi Steve,

Thanks for your response,  I think I've found the problem.

I had UNITS instead of TOLERANCEUNITS in my layer definition.

Curiously, this did not cause the map to fail, or to look wrong.

My issue only occured if the erroneous UNITS keyword was placed below
TOLERANCE in the layer definition, always leading to a TOLERANCE
measured in kilometers.  If it was placed above, it was disregarded
and the queries worked as normal.

That solves the point query problem, but polygon queries still have a
minor issue.   Using no TOLERANCEUNITS (using the default), or
TOLERANCEUNITS set to pixels in the layer definition is returning
query results for the nearest feature no matter how far away you click
from it.  I must set TOLERANCEUNITS to meters with a reasonable
TOLERANCE distance to keep it working properly.

However, I have not been able to replicate this problem on a simple
html website that I could post here, and I have the workaround, so it
is probably not worth pursuing.

Thanks again,
Ken Lord
Vancouver BC



On Tue, 14 Dec 2004 17:05:23 -0600, Steve Lime
<steve.lime at dnr.state.mn.us> wrote:
> We did notice the issue with the default value of TOLERANCE. We decided
> to update the documentation for 4.4 rather than change the value. Didn't
> want to break 4.x apps. I'm not aware of any issues with tolerance
> units. The query code itself has been very stable for a good while now.
> The default tolerance unit is PIXELs. If you have an example mapfile and
> test case that would help. I'd try 4.4 first to see if that makes like
> better.
>
> Steve
>
> >>> Ken Lord <kenlord at GMAIL.COM> 12/14/2004 2:08:05 PM >>>
> Hi List,
>
> I have a problem querying with mapserver 4.2 CGI. The problem did not
> exist
> in 3.6.
>
> To query a point, I must have the 'TOLERANCE' set in my layer despite
> the
> documentation declaring that there is a default value of 3 pixels. I
> recall
> mapserver 3.6 using the default value correctly without having to place
> the
> tolerance in the layer.
>
> The 'TOLERANCEUNITS' setting is having no effect at all, acting as if
> it is
> permanently set to kilometers ... no matter for my overview scale map,
> but
> a real pain for my local zoomed in maps.
>
> The problem seems to happen with points, lines or polygons.
>
> Any suggestions? Has this been noticed and fixed in 4.4?
>
> Thanks,
> Ken Lord
> Vancouver BC
>



More information about the MapServer-users mailing list