[postgis-devel] [PostGIS] #494: [wktraster] ST_DumpAsPolygons crashes under MingW compiled wktraster (gdal)

PostGIS trac at osgeo.org
Wed Apr 28 10:23:26 PDT 2010


#494: [wktraster] ST_DumpAsPolygons crashes under MingW compiled wktraster (gdal)
------------------------+---------------------------------------------------
  Reporter:  robe       |       Owner:  pracine        
      Type:  defect     |      Status:  new            
  Priority:  medium     |   Milestone:  WKTRaster 0.1.6
 Component:  wktraster  |     Version:  trunk          
Resolution:             |    Keywords:                 
------------------------+---------------------------------------------------
Comment (by jorgearevalo):

 Ok, I've reproduced the error. The first checking in the C SRF function
 rt_dump_as_wktpolygons is:


 {{{
 if ( (PG_NARGS() < 1 || PG_NARGS() > 2 )
 {
 elog(ERROR, "RASTER_dumpAsWKTPolygons requires 1 or 2 args\n");
 PG_RETURN_NULL();
 }
 }}}


 I've printed PG_NARGS() and it's a big number (16297). I don't know if
 it's related with the fact the raster, the first argument, must by
 detoasted with PG_DETOAST_DATUM(PG_GETARG_DATUM(0)), and it's considered
 like "a lot" of input arguments. Has sense?

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