I get it, <<#>> is deprecated.
<<->>Supports 2D and 3D operations, shortest distance.
I also verified via SQL that <<->> is indeed the shortest distance.

There are 2 questions here,
1. The centroid algorithm disappears.
2. How to calculate bounding box distance used in 3D? Initially use <<#>>.
(Please don't increase the team's development time because of my question,
I have no real application, just learning).

SELECT ST_GeomFromText('MULTIPOINT(1 3 2, 0 0 0)') <<->>
ST_GeomFromText('LINESTRING(1 1 1, 5 5 5)') returns 1.4142135623730951
SELECT ST_3DDistance(ST_GeomFromText('MULTIPOINT(1 3 2, 0 0 0)'),
ST_GeomFromText('LINESTRING(0 0 0, 5 5 5)'))
Haha, the LINESTRING data of the ST_3DDistance function should be
LINESTRING(1 1 1, 5 5 5), which is unintentional.
_______________________________________________
postgis-users mailing list
postgis-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/postgis-users

Reply via email to