ka-Map uses mapserver to render maps based on a mapserver "mapfile" that describes everything about how the map should look, including where the data is coming from (postGIS database, shapefile, raster, etc). ka-Map also uses mapserver to execute queries on the map.
<br><br>ka-Map also uses mapserver to execute searches. The way this works is ka-Map's javascript sets up the asynchronous call to a php script on the server. This script uses php_mapscript to execute a $oLayer->queryByAttributes search and then returns the results back to ka-Map.
<br><br>All of the code for this is located in [ka-map root dir]/tools/search/. <br><br>So, it sounds to me like you first need to get ka-Map displaying your data. Follow the tutorials on the wiki for help with that.<br>
<br>Then you'll need to customize the code in tools/search/kaSearch.php to execute the search you want. <br><br>To learn more about mapserver go to <a href="http://mapserver.gis.umn.edu/docs">http://mapserver.gis.umn.edu/docs
</a><br>To learn more about mapscript check out <a href="http://mapserver.gis.umn.edu/docs/howto/phpmapscript-byexample">http://mapserver.gis.umn.edu/docs/howto/phpmapscript-byexample</a>, or there is complete mapscript reference documentation at
<a href="http://mapserver.gis.umn.edu/docs/reference/phpmapscript-class">http://mapserver.gis.umn.edu/docs/reference/phpmapscript-class</a><br><br>Let us know how it goes! ka-Map should work great for you!<br><br>Sam<br>
<br><br><br><div><span class="gmail_quote">On 10/16/07, <b class="gmail_sendername">Deepthi Venugopal</b> <<a href="mailto:deepthi.va@gmail.com">deepthi.va@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br> Thank you considering my question.<br><br> Actually i would like to add a search tool .And i like to get the data from shapefile or external database.please help.I'm novice to mapserver,ka-map and php.
<br>Could you tell me about php mapscript? or forward a tutorial on php mapscript<br><br><br>Thanking you<br><span class="sg"><br>Deepthi</span><div><span class="e" id="q_115ac1dcdb9766a8_2"><br><br><br><br><br><div><span class="gmail_quote">
On 16/10/2007, <b class="gmail_sendername">Samuel Hiatt
</b> <<a href="mailto:samhiatt@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">samhiatt@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Yep! It's definitely possible. What tools do you have in mind? <br><br><br><div><span><span class="gmail_quote">On 10/15/07, <b class="gmail_sendername">Deepthi Venugopal</b> <<a href="mailto:deepthi.va@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
deepthi.va@gmail.com
</a>> wrote:</span></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><span><br><br>Is it possible to add new tools to ka-map? How?
<br>
<br></span><br></blockquote>
</div><br>
</blockquote></div><br>
</span></div></blockquote></div><br>