Opened 11 years ago
Closed 11 years ago
#2493 closed defect (fixed)
ST_DumpValues should return an empty array when passed an empty raster
Reported by: | pracine | Owned by: | dustymugs |
---|---|---|---|
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 by , 11 years ago
Milestone: | → PostGIS 2.1.1 |
---|---|
Status: | new → assigned |
Version: | trunk → 2.1.x |
comment:2 by , 11 years ago
Keywords: | history added |
---|---|
Resolution: | → fixed |
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
Fixed for -trunk in r11996. Fixed in 2.1 for r11997