Thanks for your answer, but what i need is draw a map with the resultant extent of one query. Mapserver CGI, do it very easy. Doing parameter extent=shapes, i get a map with extent of all layers queried. In PHP mapscript, until now, to set resultant extent in mapfile extent and can draw a map with zoom to resultant objects, i go thru all layers and go thru every resultant shape and then i build an extent comparing all extents........ puffff (it's very complicated!!!)
Pedro 2010/1/29 Alan Boudreault [via OSGeo.org] < [email protected]<ml-node%[email protected]> > > Hi Predroaa, > > To simulate this CGI request, you could use: > > * the OwsrequestObj class > * the function Layer->queryByShape() > > Alan > > On January 29, 2010 07:34:09 am Pedroaa wrote: > > > Hi friends, my english is not so good (im from argentina). > > I need do a $oMap->drawQuery(), but i need do it like Mapserver CGI. > > > /cgi-bin/mapserv?mode=nquery&imgext=-60.70866644902204+-31.64842730088904+- > > 60.70265555972983+-31.644427300889028& > > > > -> mapext=shapes <- > > > > > &imgxy=367+133&imgbox=367+133+473+249&imgsize=829+552&layers=departamentos > > > > Do you know if there is any way to do that easily using phpmapscript? > > > > > > thanks > > > > Pedro. > > > > -- > Alan Boudreault > Mapgears > http://www.mapgears.com > _______________________________________________ > mapserver-users mailing list > [hidden > email]<http://n2.nabble.com/user/SendEmail.jtp?type=node&node=4479866&i=0> > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > ------------------------------ > View message @ > http://n2.nabble.com/Help-PHP-mapscript-DrawQuery-with-extent-shapes-tp4479709p4479866.html > To unsubscribe from Help PHP mapscript. DrawQuery with extent=shapes, click > here< (link removed) >. > > > -- View this message in context: http://n2.nabble.com/Help-PHP-mapscript-DrawQuery-with-extent-shapes-tp4479709p4480065.html Sent from the Mapserver - User mailing list archive at Nabble.com.
_______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
