[postgis-devel] [PostGIS] #1875: [raster] ST_SummaryStats should return null stats on nodata rasters

PostGIS trac at osgeo.org
Mon Jun 18 10:36:31 PDT 2012


#1875: [raster] ST_SummaryStats should return null stats on nodata rasters
---------------------+------------------------------------------------------
 Reporter:  pracine  |       Owner:  pracine      
     Type:  defect   |      Status:  new          
 Priority:  medium   |   Milestone:  PostGIS 2.0.2
Component:  raster   |     Version:  2.0.x        
 Keywords:           |  
---------------------+------------------------------------------------------
 SELECT ST_SummaryStats(ST_AddBand(ST_MakeEmptyRaster(10, 10, 0, 0, 1, 1,
 0, 0, 4326), '16BSI'::text, 0, 0));

 returns:

 "(0,0,0,-1,0,0)"

 If zero pixel were taken into account in the stats, then there should be
 no results for the other metrics. If I fetch only the min, the max, or the
 average, how do I know there are actually not significant? It should
 return:

 "(0,null,null,null,null,null)"

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1875>
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-devel mailing list