[OSGeo-Discuss] Re: How to enable a spatial query with MODE=FEATUREQUERY (CGI mode)?

Eduardo Kanegae eduardo.kanegae at gmail.com
Wed Feb 15 02:11:21 PST 2012

hi all,
Just to close this topic, I put it to work after the folloowing changes:

* mapfile
    - Tolerance = 0 at both layers (poly and point layer)
    - template is set at both layers
* web template
    - inserted a hidden html param named 'slayer' with value = poly_layer
    - inserted a radio html param named 'mode' with 'value' = featurequery

now, it's working! :-)


> Hi,
> I have two layers (poly_layer and point_layer) and using MapServer CGI
> interface I wish to:
> a) - let user click a polygon at 'poly_layer'
> b) - then list attributes of 'point_layer' that are contained into the
> polygon choosen at (a)
> At my mapfile, both layers has layer->template property set and at CGI
> interface (web->template) I'm passing:
> - mode = featurequery
> - slayer = poly_layer
> - qlayer = point_layer
> But after the click on map, got only a "not found" error.
> Am I doing right use of this mode? Or for this need, is it better to
> use another mode?
> ps.: all layers are Mapinfo files and can't use PostGIS at this application.
> Eduardo Patto Kanegae
> http://www.webmapit.comĀ | @webmapit

More information about the Discuss mailing list