<!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> </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. 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. For example nearest park, library, school, etc. It is
also possible the point could be contained with in a polygon. 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> </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. I know I could
do it with PostGIS, but I'm trying to get away without making that a requirement
for my application. Thanks for any feedback you can give
me.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=200415020-01112007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=200415020-01112007>-Brian</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV> </DIV></BODY></HTML>