one more thing. can i access shape extents through $gpoMap object?<br>$gpoMap->extent->minx or something like this?<br><br>thanks!<br><br><div><span class="gmail_quote">2007/5/11, Eduardo Zenaide <<a href="mailto:ezenaide@gmail.com">
ezenaide@gmail.com</a>>:</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's one thing i didn'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=&var_minx=-38.234122&var_miny=-11.52665&var_maxx=-34.594394&var_maxy=-8.133178&minx=-38.736107&miny=-11.526650&maxx=-34.092409&maxy=-8.133178<br>...<br>CMD=QUERY_POINT&INPUT_TYPE=auto_rect&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'm trying to do this using a search string with a text box. my function do this:<br><br>###############<br><br>function determinaQSTRING() {
<br> var hostPar = "<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>";<br> var keymapPar = "KEYMAPXSIZE=100&KEYMAPYSIZE=75&";
<br> var layerFixa = "Limite_Estadual_AL=Y&grid=Y&";
<br> var layer = document.pesquisa.layersList.value;<br> var modePar = "&CMD=QUERY_POINT&INPUT_TYPE=auto_rect&";<br> var imagePar = "imagewidth=760&imageheight=570";
<br> var queryEntry = document.pesquisa.busca.value;<br> var operador = document.pesquisa.operadores.value;<br> var minx = "minx=-37.561294&";<br> var miny = "miny=-9.304462&
";<br> var maxx = "maxx=-37.228709&";<br> var maxy = "maxy=-9.160048&";<br> document.pesquisa.qstring.value = "(\"[NOME]\" "+ operador +" /"+ queryEntry +"/)";
<br> window.opener.document.location = hostPar + keymapPar + layerFixa + layer + "=Y&" + minx + miny + maxx + maxy + imagePar + modePar + "INPUT_COORD=";<br> }<br><br>###############<br><br>
i've tried to change the minx, miny, etc vars to get the actual size of queried layers using the [shpxy] and [shpminx], etc. i'm still trying to figure it out, but i've already tested using the exactly coordinates - just as in the function above - and didn'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'm really stuck with it.
<br><br>thanks in advance :)<br><br><br><div><span class="gmail_quote">2007/5/10, Steve Lime <<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>>:</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'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> http://.../cgi-bin/mapserv?map=my.map&mode=query&qlayer=parcels&mapxy=1234.5678+1234.5678<br><br>Steve<br><br>>>> Eduardo Zenaide <<a href="mailto:ezenaide@GMAIL.COM" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
ezenaide@GMAIL.COM</a>
> 05/09/07 2:28 PM >>><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'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'm using an application based on GMap and i'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