[postgis-users] st_closespoint weridness

Dave Potts dave.potts at pinan.co.uk
Fri Oct 5 12:10:54 PDT 2012


just tried a

select st_closestpoint(poly,point) and got the result point

The point is within a the closed polygon poly, the version is postgis 2.0 
is there any sane reason why this behave in this manner.  I had expected
to the value of the x/y coordinate pair from the polylgon that is nearest
to point, not the value of point!

Any suggestions as what I might be doing wrong?  or an suggestions for a
better way of doing this?

regards


Dave.

-- 





More information about the postgis-users mailing list