[postgis-devel] [PostGIS] #1030: [raster] ST_SummaryStats on coverage crashes with the sample_percent parameter

PostGIS trac at osgeo.org
Thu Jun 16 14:45:59 PDT 2011


#1030: [raster] ST_SummaryStats on coverage crashes with the sample_percent
parameter
----------------------------+-----------------------------------------------
 Reporter:  pracine         |       Owner:  pracine      
     Type:  defect          |      Status:  new          
 Priority:  high            |   Milestone:  PostGIS 2.0.0
Component:  postgis raster  |     Version:  trunk        
 Keywords:                  |  
----------------------------+-----------------------------------------------

Comment(by dustymugs):

 That is a very odd error.  From what I can tell from rt_api.c and rt_pg.c,
 the only way to call rt_raster_from_wkb is from rt_raster_from_hexwkb,
 which is only called from RASTER_in through the SQL function raster_in.

 So, I think there is something wrong in your setup.

 Also, the second example shouldn't work.  The possible variations of
 ST_SummaryStats for coverages are:

 1. ST_SummaryStats(rastertable text, rastercolumn text, nband integer
 DEFAULT 1, exclude_nodata_value boolean DEFAULT TRUE, sample_percent
 double precision DEFAULT 1)

 2. ST_SummaryStats(rastertable text, rastercolumn text,
 exclude_nodata_value boolean)

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1030#comment:1>
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