Opened 12 years ago

Closed 12 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: master
Keywords: Cc:

Description


Change History (7)

comment:1 by pracine, 12 years ago

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

comment:2 by pracine, 12 years ago

Status: newassigned

comment:3 by pracine, 12 years ago

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 by pracine, 12 years ago

Resolution: fixed
Status: assignedclosed

fixed at r9152.

comment:5 by pracine, 12 years ago

Resolution: fixed
Status: closedreopened

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

comment:6 by pracine, 12 years ago

Owner: changed from pracine to robe
Status: reopenednew

comment:7 by pracine, 12 years ago

Resolution: fixed
Status: newclosed

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

Note: See TracTickets for help on using tickets.