Opened 9 years ago

Closed 9 years ago

#1569 closed defect (fixed)

[raster] ST_Clip variants defaulting to band 1 should default to NULL (all bands)

Reported by: pracine Owned by: robe
Priority: medium Milestone: PostGIS 2.0.0
Component: raster Version: main
Keywords: Cc:

Description


Change History (7)

comment:1 Changed 9 years ago by pracine

Component: postgisraster
Owner: changed from pramsey to pracine
Version: 1.5.Xtrunk

comment:2 Changed 9 years ago by pracine

Status: newassigned

comment:3 Changed 9 years ago by pracine

The following test should return 2 not 1:

SELECT ST_NumBands(ST_Clip(ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(4, 4, 0, 0, 1, -1, 0, 0, 0), 1, '8BUI', 10, 0), '8BUI'::text, 2, 0), 
               ST_Buffer(ST_SetSRID(ST_MakePoint(1.5, -1.5), 0), 0.2)));

comment:4 Changed 9 years ago by pracine

Resolution: fixed
Status: assignedclosed

fixed at r9152.

comment:5 Changed 9 years ago by pracine

Resolution: fixed
Status: closedreopened

I updated the doc to the best of my knowledge (r9153) but the second example should be removed.

comment:6 Changed 9 years ago by pracine

Owner: changed from pracine to robe
Status: reopenednew

comment:7 Changed 9 years ago by pracine

Resolution: fixed
Status: newclosed

Fixed by r9195. Documentation modified: removed the multiband example.

Note: See TracTickets for help on using tickets.