[postgis-users] Closest point on a POLYGON to a given POINT

Juergen Lorenz Simon simon at webtecc.com
Mon Oct 12 07:43:39 PDT 2009


Hi,

I have a nut to crack and i'm not finding anything suitable in the  
PostGIS documentation. The problem is as follows:

I have a POLYGON G and a POINT P. I'd like to find the closest point  
to P on G (not in, ON). Is there a quick way of doing this with the  
build-in functions? Or is there some plsql routine I can use?

Thanks in advance.

PS: Coming to think of it: is there some open source repository for  
PostGIS code?




More information about the postgis-users mailing list