[postgis-users] distance from polygon for a point that is inside

ricardd at mathstat.dal.ca ricardd at mathstat.dal.ca
Fri Sep 16 10:46:08 PDT 2005


Hello postgis-users,
I recently started using postGIS and I'm really impressed with its
capabilities. Kudos to the developers.

This is probably an easy question for the gurus, so please bear with me.

Is there a way to calculate the minimum distance between a point and the
boundary of a polygon when the point is located inside the polygon? I have
been using distance(polygon, point), but it returns 0 when
contains(polygon, point)=T.

Help appreciated.
Cheers,

Dan





More information about the postgis-users mailing list