<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16544" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN class=200415020-01112007>MapServer 
users,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=200415020-01112007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=200415020-01112007>I am curious to hear 
if anyone knows if it is possible to implement a nearest search with 
mapscript.&nbsp; For example I want to take an xy point that a user clicked on 
the map and find the nearest feature in many different layers to that 
point.&nbsp; For example nearest park,&nbsp;library, school, etc.&nbsp; It is 
also possible the point could be contained with in a polygon.&nbsp; Is there a 
Geos function in mapscript to do this?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=200415020-01112007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=200415020-01112007>I haven't seen this 
done before with mapserver, but thought I would ask anyway.&nbsp; I know I could 
do it with PostGIS, but I'm trying to get away without making that a requirement 
for my application.&nbsp; Thanks for any feedback you can give 
me.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=200415020-01112007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=200415020-01112007>-Brian</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV>&nbsp;</DIV></BODY></HTML>