<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Greetings,<br><br>I am a cartography/GIS student, making a research about tools for spatial analysis in webmaps. I use Postgis/Geoserver/Openlayers. <br><br>I have two simple questions, trying to get ideas to solve these little problems:<br><br>1- I have a html form, the user selects two layers to make an intersect operation in postgis. This form generate a sql file. The question is: How can I, dinamically, display the result of this sql query in openlayers? <br>I think I will need a new html, but how it would be constructed to display this new layer since the user has a considerable number of possible combinations to intersect? Does someone has a piece of code to exemplify how it can be done to me?<br><br>2- The other spatial analysis tool that I am evaluating is the measure tool. I am using an openlayers measure control and it´s working fine. The user can measure a distance to answer a simple question and send the  answer to me in a html form. <br>My question is: How can I know if this user has used the measure tool? Just like, when he/she activate the openlayers control, a hidden value must be added to his/her form. <br><br><br>I´m starting with openlayers and it´s a great tool. Thank you a lot, best regards from Brazil.<br><br><h1><font style="font-size: 10pt;" size="2">André Mendonç</font><font style="font-size: 10pt;" size="2">a</font></h1><br><br><br><br /><hr />Conheça os novos produtos Windows Live. <a href='http://www.windowslive.com.br' target='_new'>Clique aqui!</a></body>
</html>