artemp/trac2github — Issue #504: Add tolerance to the features_at_point() query in the PostGIS plugin
Author: artemp
Created: 2011-10-09 20:37:48+00:00
State: open
Labels: PostGIS_Input_Driver

It is very difficult to get results for a GetFeatureInfo request because the features_at_point() has no tolerance parameter:

map.cpp
ds->features_at_point(mapnik::coord2d(x,y));

postgis.cpp:
Envelope box(pt.x,pt.y,pt.x,pt.y);
std::string table_with_bbox = populate_tokens(table_,FMAX,box);