<font size="2">Hi to everyone,<br><br>in my webgis application I'm using OpenLayers to request WMS layers to MapServer 6.2.1. Is it possible to send dynamic sql to mapserver using function of PostGIS (for example ST_Distance)? </font><br><pre><i>select * from table where </i><i>st_distance(the_geom,GeomFromText('Point(1 0)',4326)) <6) as myquery;<br><br></i><font face="verdana">What I would like to be able to do is pass user defined variables e.g. latitude, longitude and distance.<br><br>Thanks to all<br>Michele De Santis</font><br></pre> <br><br><br>