one more thing. can i access shape extents through $gpoMap object?<br>$gpoMap-&gt;extent-&gt;minx or something like this?<br><br>thanks!<br><br><div><span class="gmail_quote">2007/5/11, Eduardo Zenaide &lt;<a href="mailto:ezenaide@gmail.com">
ezenaide@gmail.com</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">thanks, Steve, but there&#39;s one thing i didn&#39;t understand:
<br><br>when MapServer do the query, it uses the georreferencial units, ok. but, it uses pixels to do the zooming thing. like this:<br><br>###############<br>
<br>... var_minxp=&amp;var_minx=-38.234122&amp;var_miny=-11.52665&amp;var_maxx=-34.594394&amp;var_maxy=-8.133178&amp;minx=-38.736107&amp;miny=-11.526650&amp;maxx=-34.092409&amp;maxy=-8.133178<br>...<br>CMD=QUERY_POINT&amp;INPUT_TYPE=auto_rect&amp;INPUT_COORD=168%2C180%3B216%2C225
<br><br>###############<br><br>the final part is used to do the zoom. with ROSA tool it works, but i&#39;m trying to do this using a search string with a text box. my function do this:<br><br>###############<br><br>function determinaQSTRING() {
<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; var hostPar = &quot;<a href="http://localhost:82/zaal/al.php?" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://localhost:82/zaal/al.php?</a>&quot;;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; var keymapPar = &quot;KEYMAPXSIZE=100&amp;KEYMAPYSIZE=75&amp;&quot;;
<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; var layerFixa = &quot;Limite_Estadual_AL=Y&amp;grid=Y&amp;&quot;;
<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; var layer = document.pesquisa.layersList.value;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; var modePar = &quot;&amp;CMD=QUERY_POINT&amp;INPUT_TYPE=auto_rect&amp;&quot;;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; var imagePar = &quot;imagewidth=760&amp;imageheight=570&quot;;
<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; var queryEntry = document.pesquisa.busca.value;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; var operador = document.pesquisa.operadores.value;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; var minx = &quot;minx=-37.561294&amp;&quot;;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; var miny = &quot;miny=-9.304462&amp;

&quot;;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; var maxx = &quot;maxx=-37.228709&amp;&quot;;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; var maxy = &quot;maxy=-9.160048&amp;&quot;;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; document.pesquisa.qstring.value = &quot;(\&quot;[NOME]\&quot; &quot;+ operador +&quot; /&quot;+ queryEntry +&quot;/)&quot;;
<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; window.opener.document.location = hostPar + keymapPar + layerFixa + layer + &quot;=Y&amp;&quot; + minx + miny + maxx + maxy + imagePar + modePar + &quot;INPUT_COORD=&quot;;<br> }<br><br>###############<br><br>

i&#39;ve tried to change the minx, miny, etc vars to get the actual size of queried layers using the [shpxy] and [shpminx], etc. i&#39;m still trying to figure it out, but i&#39;ve already tested using the exactly coordinates - just as in the function above - and didn&#39;t work.
<br>when the query is made through the search string, it gets this INPUT_COORD to zoom. and it uses pixel units. i think if i could convert the pixel units to georreferencial it will work.<br><br>sorry to bother and all, but i&#39;m really stuck with it.
<br><br>thanks in advance :)<br><br><br><div><span class="gmail_quote">2007/5/10, Steve Lime &lt;<a href="mailto:Steve.Lime@dnr.state.mn.us" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Steve.Lime@dnr.state.mn.us
</a>&gt;:</span><div><span class="e" id="q_1127b0485a9ef920_1"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Eduardo: Sure, this is no problem. All the query routines expect map units (not pixels) and it&#39;s the CGI program that does that conversion before-hand.<br><br>To query by point use mapxy, by bbox use mapext and by shape use mapshp. For example:
<br><br>&nbsp;&nbsp;http://.../cgi-bin/mapserv?map=my.map&amp;mode=query&amp;qlayer=parcels&amp;mapxy=1234.5678+1234.5678<br><br>Steve<br><br>&gt;&gt;&gt; Eduardo Zenaide &lt;<a href="mailto:ezenaide@GMAIL.COM" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
ezenaide@GMAIL.COM</a>
&gt; 05/09/07 2:28 PM &gt;&gt;&gt;<br>Hi, list.<br><br>ok, i am able to get polygon extents.<br>but the query string is made using a pixel referrencing based on previous<br>image.<br>there&#39;s a way to tell MapServer to query using georeferrencing units? or
<br>maybe any way to convert the pixel units to georreferencial?<br><br>i&#39;m using an application based on GMap and i&#39;ve seen some GMapPix2Geo<br>function on the code. this could be used on the query string?<br><br>

--<br>Eduardo Zenaide<br><br></blockquote></span></div></div><br><br clear="all"><br>-- <br><span class="sg">Eduardo Zenaide
</span></blockquote></div><br><br clear="all"><br>-- <br>Eduardo Zenaide