queryByPoint Problem

Stefan Malmesjö stefan.malmesjo at CURALIA.SE
Tue Apr 11 00:17:35 PDT 2006


> The problem is, I don't get the expected results.  I very rarely get any features returned from the first layer, and I always get results from the second layer, even if there isn't a feature at the click point.  I have verified that coordinates being calculated are correct.  Both layers have templates defined in the mapfile.
> 
> When I click directly on a line from the first layer in the map, with a buffer of 25.0, I should get the feature I have clicked on, but I always get the underlying polygon.  When I click on a gap between polygons with a buffer of 0, I should get no results, but I always get one of the polygons close by.



Could part of the problem is that you set the buffer to 0? That means 
that the buffer defaults to whatever tolerance you have set in the map 
file. From the phpmapscript reference:

"Passing buffer <=0 defaults to tolerances set in the map file (in pixels)"

/Stefan Malmesjö



More information about the MapServer-users mailing list