Thanks Steve! Great explanation! But, in mapscript I got the query´s result getting resultCacheMemberObj and layer.getFeature... How can I do something like that using cgi?
Paul On Mon, Jun 22, 2009 at 6:29 PM, Steve Lime <[email protected]>wrote: > Querying is controlled via the mode parameter. Mode=query does a point > query returning at most 1 result in one layer. Mode=nquery allows you > to query multiple layers and return multiple results from either a point or > a rect. MapServer looks at the various additional supplied parameters to > decide whether to do a point or rect query. > > For example, this url will drop a point through all queryable layers that > have status DEFAULT (since I'm not explicitly turning anything on) > > http://mapserv.org/cgi-bin/mapserv?map=foo.map&mapxy=x+y&mode=nquery > > and this will do a bbox query: > > > http://mapserv.org/cgi-bin/mapserv?map=foo.map&mapext=minx+miny+maxx+maxy&mode=nquery > > You can turn layers on with the layer or layers parameters and can restrict > queries to one layer (if necessary) using qlayer. > > mode=query ~ queryByPoint with MS_SINGLE > mode=nquery ~ queryByPoint with MS_MULTIPLE or queryByRect > > The qlayer parameter has the effect of running the query methods on a > layerObj while without it you're running on the whole mapObj. > > Does this help? > > Steve > > >>> On 6/22/2009 at 4:02 PM, in message > <[email protected]>, Paul james > <[email protected]> wrote: > > Hello guys, I pretty lost with CGI... > > Using mapscript, I can get query results with functions queryByPoint and > > queryByRect... > > How can I do that in CGI mode? > > > > Thanks > > > > Paul > >
_______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
