Opened 5 years ago

Last modified 5 years ago

#3045 closed defect

&&& operator confuses dimensions — at Version 2

Reported by: strk Owned by: pramsey
Priority: medium Milestone: PostGIS 2.1.6
Component: postgis Version: 2.0.x
Keywords: Cc: pramsey

Description (last modified by strk)

The &&& operator does not distinguish between Z and M values, see this:

WITH v(i,g) AS ( VALUES
 (1,'POINT(0 0)'::geometry),
 (2,'POINTZ(0 0 1)'), ---- X (wrong)
 (3,'POINTZ(0 0 0)'), 
 (4,'POINTM(0 0 1)'), ---- X
 (5,'POINTZM(0 0 0 1)'),
 (6,'POINTZM(0 0 1 0)') -- X (wrong)
 )
SELECT i FROM v WHERE g &&& 'POINTM(0 0 1)'::geometry;

Change History (2)

comment:1 Changed 5 years ago by strk

Cc: pramsey added

comment:2 Changed 5 years ago by strk

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