Can you write it as a wiki?<br><br><div><span class="gmail_quote">2007/8/6, Victor <<a href="mailto:bobbie@ua.fm">bobbie@ua.fm</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
> I'm a little confused about what you say. Do you mean when i click one<br>> point , it's just ask for a query?<br>><br>> because i think query is just i type in some word, and then something happen<br>
> to look up in some tables.<br>><br>> I look through your suggestion and the URL you gave me , but found no<br>> example as i asked.<br>><br>> i think it's very popular application , maybe someone has realized before.
<br>> I'm a beginner, so maybe i misunderstand what you say.<br><br>(: Ok, not a problem. I will try to better explain my answer, using<br>the application I am currently developing as an example.<br><br>So, I have a situation, when there is a set of locations where some
<br>resources are placed. Each resource has its coordinates, and a set of<br>attributes (like dwelling depth, water temperature and so on). The<br>task is to make a map of Ukraine with these locations marked on the<br>map. And, when the user clicks the mark with the <<info>> tool, a
<br>small window should pop-up with detailed resource description.<br><br>It seems to me, that the task I am solving is very similar to what you<br>are doing.<br><br>So, I have setup a table in PostgreSQL database with PostGIS
<br>extensions describing the resources I have. Then, I have modified the<br>myQuery function to call my custom script to process the user clicks<br>with the <<info>> tool.<br><br>As far as I understand, myQuery function is responsible for user
<br>queries processing. It can be found in the startUp.js script<br>corresponding to the User Interface you have choosen (kaExplorer or<br>kaAqua).<br><br>If you look at this function definition, you will see that it takes
<br>some information about the map, geographical coordinates, where the<br>user clicked, and calls some script (map_query_float.php by default).<br>In my case, I use geographical coordinates to find the corresponding<br>resource based on the distance to it (see PostGIS manual for detailed
<br>instructions how to do this efficiently). When the resource is<br>identified, my script builds a pretty table with resource description.<br><br>The <<basic>> map is rendered from the Shapefiles, and resources are
<br>taken from the database (see MapServer manuals for detailed<br>instructions).<br><br>So, this seems to me a pretty good solution,<br><br>With best regards,<br><br>Victor<br><br>><br>> 2007/8/5, Victor <<a href="mailto:bobbie@ua.fm">
bobbie@ua.fm</a>>:<br>> ><br>> > > how to realize such effect. i add some point data, and when i click one<br>> > > point , it's open a new windows do some work(show a image, or execute a<br>
> > > python script<br>> ><br>> > Greetings Stin,<br>> ><br>> > what you are asking for, sounds very similar as the Query system described<br>> > on the<br>> > ka-Map WIki:<br>
> ><br>> > <a href="http://ka-map.ominiverdi.org/wiki/index.php/Query">http://ka-map.ominiverdi.org/wiki/index.php/Query</a><br>> ><br>> > Basically speaking, you should redefine the myQuery function in the
<br>> > startUp.js file<br>> > (either tools/kaExplorer or in the aqua UI).<br>> ><br>> > Then, it is possible to use PostGIS functions to locate the point of the<br>> > layer nearch<br>> > which the mouse was clicked.
<br>> ><br>> > With best regards,<br>> ><br>> > Victor<br>> ><br>> > <a href="http://vityok.org.ua">http://vityok.org.ua</a><br>> ><br><br>-- §â§Ö§Ü§Ý§Ñ§Þ§Ñ -----------------------------------------------------------
<br>§¶§à§â§Ö§Ü§ã §¬§Ý§å§Ò. §¯§Ñ§å§é§Ú§Þ §Ù§Ñ§â§Ñ§Ò§Ñ§ä§í§Ó§Ñ§ä§î §ß§Ñ §Ó§Ñ§Ý§ð§ä§ß§à§Û §Ò§Ú§â§Ø§Ö.<br><a href="http://www.fxclub.org/filials_kiev_reg">http://www.fxclub.org/filials_kiev_reg</a><br><br></blockquote></div><br><br clear="all"><br>-- <br>----------------------------------------------
<br>Tie Wang<br>TianJin Climate Center<br>TianJin Meteorological Bureau<br>Tianjin, China, 300074<br>Email: <a href="mailto:stin.wang@gmail.com">stin.wang@gmail.com</a><br>Tel:+86-22-23331566-2377<br>----------------------------------------------