--distance with 3d as first point and 2d as second
select st_3ddistance('linestring(0 0 1,1 1 2,2 0 3)'::geometry, 'linestring(0 2, 3 2)'::geometry);
-
+select ST_AsText(ST_3DClosestPoint('POINT(0 0 0)', 'POINT(0 0)'));
+select ST_AsText(ST_3DShortestLine('LINESTRING(2 1, 3 0)', 'LINESTRING(0 0 2, 3 3 -4)'));
-- Area of an empty polygon
1
NOTICE: One or both of the geometries is missing z-value. The unknown z-value will be regarded as "any value"
1
+NOTICE: One or both of the geometries is missing z-value. The unknown z-value will be regarded as "any value"
+POINT Z (0 0 0)
+NOTICE: One or both of the geometries is missing z-value. The unknown z-value will be regarded as "any value"
+LINESTRING Z (2 1 -1,1.5 1.5 -1)
emptyPolyArea|0
emptyLineArea|0
emptyPointArea|0