<div dir="ltr"><div dir="ltr">I get it, <<#>> is deprecated.<br><<->>Supports 2D and 3D operations, shortest distance.<br>I also verified via SQL that <<->> is indeed the shortest distance.<br><br>There are 2 questions here,<br>1. The centroid algorithm disappears.<br>2. How to calculate bounding box distance used in 3D? Initially use <<#>>.<br>(Please don't increase the team's development time because of my question, I have no real application, just learning).<br><br>SELECT ST_GeomFromText('MULTIPOINT(1 3 2, 0 0 0)') <<->> ST_GeomFromText('LINESTRING(1 1 1, 5 5 5)') returns 1.4142135623730951<br>SELECT ST_3DDistance(ST_GeomFromText('MULTIPOINT(1 3 2, 0 0 0)'), ST_GeomFromText('LINESTRING(0 0 0, 5 5 5)'))<br>Haha, the LINESTRING data of the ST_3DDistance function should be LINESTRING(1 1 1, 5 5 5), which is unintentional.<br></div></div>