Thanks for your answer, but what i need is draw a map with the resultant extent of one query.<div>Mapserver CGI, do it very easy. Doing parameter extent=shapes, i get a map with extent of all layers queried.</div><div>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&#39;s very complicated!!!)</div>
<div><br></div><div><br>Pedro</div><div><br><div class="gmail_quote">2010/1/29 Alan Boudreault [via OSGeo.org] <span dir="ltr">&lt;<a href="http://n2.nabble.com/user/SendEmail.jtp?type=node&node=4480065&i=0" target="_top" rel="nofollow">[hidden email]</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">

Hi Predroaa,
<br><br>To simulate this CGI request, you could use:
<br><br> * the OwsrequestObj class
<br> * the function Layer-&gt;queryByShape()
<br><br>Alan
<br><br>On January 29, 2010 07:34:09 am Pedroaa wrote:
</div><div class="im"><div><div class='shrinkable-quote'><br>&gt; Hi friends, my english is not so good (im from argentina).
<br>&gt; I need do a $oMap-&gt;drawQuery(), but i need do it like Mapserver CGI.
<br>&gt; /cgi-bin/mapserv?mode=nquery&amp;imgext=-60.70866644902204+-31.64842730088904+-
<br>&gt; 60.70265555972983+-31.644427300889028&amp;
<br>&gt; 
<br>&gt; -&gt; mapext=shapes  &lt;-
<br>&gt; 
<br>&gt; &amp;imgxy=367+133&amp;imgbox=367+133+473+249&amp;imgsize=829+552&amp;layers=departamentos
<br>&gt; 
<br>&gt; Do you know if there is any way to do that easily using phpmapscript?
<br>&gt; 
<br>&gt; 
<br>&gt; thanks
<br>&gt; 
<br>&gt; Pedro.
<br>&gt; 
</div></div>-- 
<br></div>Alan Boudreault
<br>Mapgears
<br><a href="http://www.mapgears.com" rel="nofollow" link="external" target="_blank">http://www.mapgears.com</a><br>_______________________________________________
<br>mapserver-users mailing list
<br><a href="http://n2.nabble.com/user/SendEmail.jtp?type=node&amp;node=4479866&amp;i=0" rel="nofollow" target="_blank" link="external">[hidden email]</a>
<br><div class="im"><a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" rel="nofollow" link="external" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>

</blockquote></div><br></div>

<br><hr align="left" width="300">
View this message in context: <a href="http://n2.nabble.com/Help-PHP-mapscript-DrawQuery-with-extent-shapes-tp4479709p4480065.html">Re: Help PHP mapscript. DrawQuery with extent=shapes</a><br>
Sent from the <a href="http://n2.nabble.com/Mapserver-User-f1969211.html">Mapserver - User mailing list archive</a> at Nabble.com.<br>