Opened 13 months ago

Last modified 9 months ago

#5589 closed defect

ST_3DDistance seems not to work for LINESTRINGs in specified situation. — at Version 3

Reported by: Wenjing Owned by: pramsey
Priority: critical Milestone: PostGIS 3.2.8
Component: postgis Version: 3.4.x
Keywords: Cc: Wenjing

Description (last modified by Wenjing)

Consider the following statement

SELECT ST_3DDistance(b1, b2)  
FROM ST_GeomFromText('LINESTRING Z (0 0 0, 1 0 0)') As b1,
ST_GeomFromText('LINESTRING Z (0 0 0, 1 1 1)') As b2;
--  st_3ddistance 
---------------
--              
-- (1 row)

The ST_3DDistance function is expected to give the result but it doesn't.

The version:

 POSTGIS="3.5.0dev 3.4.0rc1-705-g5c3ec8392" [EXTENSION] PGSQL="170" GEOS="3.13.0dev-CAPI-1.18.0" PROJ="8.2.1 NETWORK_ENABLED=OFF URL_ENDPOINT=https://c
dn.proj.org USER_WRITABLE_DIRECTORY=/tmp/proj DATABASE_PATH=/usr/share/proj/proj.db" LIBXML="2.9.13"
(1 row)

Change History (3)

comment:1 by Wenjing, 13 months ago

Summary: ST_3DDistance seems not to work for LINESTRINGs in specified situation.ST_3DDistance seems not work for LINESTRINGs in specified situation.

comment:2 by Wenjing, 13 months ago

Summary: ST_3DDistance seems not work for LINESTRINGs in specified situation.ST_3DDistance seems not to work for LINESTRINGs in specified situation.

comment:3 by Wenjing, 13 months ago

Cc: Wenjing added
Description: modified (diff)
Note: See TracTickets for help on using tickets.