[postgis-tickets] [PostGIS] #2493: ST_DumpValues should return an empty array when passed an empty raster

PostGIS trac at osgeo.org
Wed Oct 2 10:31:45 PDT 2013


#2493: ST_DumpValues should return an empty array when passed an empty raster
---------------------+------------------------------------------------------
 Reporter:  pracine  |       Owner:  dustymugs
     Type:  defect   |      Status:  new      
 Priority:  medium   |   Milestone:           
Component:  raster   |     Version:  trunk    
 Keywords:           |  
---------------------+------------------------------------------------------
 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))).*

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2493>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list