Opened 9 years ago

Last modified 9 years ago

#3045 closed defect

&&& operator confuses dimensions — at Version 3

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)'), ----- true
 (3,'POINTZ(0 0 0)'), ----- false (wrong?)
 (4,'POINTM(0 0 1)'), ----- true
 (5,'POINTZM(0 0 0 1)'), -- false (wrong!)
 (6,'POINTZM(0 0 1 0)') --- true (wrong!)
 )
SELECT i FROM v WHERE g &&& 'POINTM(0 0 1)'::geometry;

Change History (3)

comment:1 by strk, 9 years ago

Cc: pramsey added

comment:2 by strk, 9 years ago

Description: modified (diff)

comment:3 by strk, 9 years ago

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