#5279 closed enhancement (duplicate)

ST_ClosestPoint and ST_ShortestLine for geography

Reported by: robe Owned by: pramsey
Priority: medium Milestone: PostGIS 3.4.0
Component: postgis Version: master
Keywords: Cc: latot, pramsey


I recall latot asking about this and that was why he was interested in s3.

Paul it's my understanding from IRC that you already compute ClosestPoint on both objects

PostGIS calculation finds the projected point using spherical math, and then returns the spheroidal distance between those points
I guess for the right conditions the projected point could be different enough to drive those differences? Kind of hard to fathom it's that different, given that the final distance is calculated on the spheroid... feel like the projected point would have to differ a LOT.

so I presume you can just tease this out to create a ST_ClosestPoint and ST_ShortestLine for geography?

Change History (1)

comment:1 by robe, 13 months ago

Resolution: duplicate
Status: newclosed

oops I hadn't noticed latot already asked #5266. So this is a duplicate. I'll close this out and add ST_ClosestPoint to his list.

Note: See TracTickets for help on using tickets.