Opened 6 years ago

Closed 6 years ago

#2493 closed defect (fixed)

ST_DumpValues should return an empty array when passed an empty raster

Reported by: pracine Owned by: Bborie Park
Priority: medium Milestone: PostGIS 2.1.1
Component: raster Version: 2.1.x
Keywords: history Cc:

Description

SELECT (ST_DumpValues(ST_AddBand(ST_MakeEmptyRaster(0, 0, 0, 0, 1), ARRAY[ROW(NULL, '8BUI', 255, 0),ROW(NULL, '16BUI', 1, 2)]::addbandarg[]))).*

should return one row per band with the number of the band and an empty array for the values. Right now it just return nothing.

It is normal though that it returns nothing when there is no band:

SELECT (ST_DumpValues(ST_MakeEmptyRaster(10, 10, 0, 0, 1))).*

Change History (2)

comment:1 Changed 6 years ago by Bborie Park

Milestone: PostGIS 2.1.1
Status: newassigned
Version: trunk2.1.x

comment:2 Changed 6 years ago by Bborie Park

Keywords: history added
Resolution: fixed
Status: assignedclosed

Fixed for -trunk in r11996. Fixed in 2.1 for r11997

Note: See TracTickets for help on using tickets.