sedona icon indicating copy to clipboard operation
sedona copied to clipboard

confuse about ST_DistanceSphere and ST_DistanceSpheroid

Open MyqueWooMiddo opened this issue 1 year ago • 1 comments

When calculating point to non-point with ST_DistanceSphere and ST_DistanceSpheroid , both functions use centroid rather than closest point? I think this is unreasonable , and ST_Distance using JTS's distance , the result is reasonable.

MyqueWooMiddo avatar Mar 28 '24 12:03 MyqueWooMiddo

@MyqueWooMiddo Unfortunately, the spheroid distance lib used in Sedona only works for points. It does not take non-point objects as input.

jiayuasu avatar Mar 31 '24 04:03 jiayuasu