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

PostGIS trac at osgeo.org
Wed Apr 28 06:13:35 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 pracine):

 Right. Fixed now in r5580.

 Replying to [comment:11 robe]:
 > One small problem.  The .sql script no longer works because its
 complaining geomval and the ST_DumpAsPolygons (ST_DumpAsPolygons is
 returning too many fields).
 >
 > It seems we are now returning srid as a column in ST_DumpAsPolygons, but
 geomval only has a geometry and pixel value.
 >
 > Why is it necessary to return srid as a column in ST_DumpAsPolgons.
 This does not make sense to me.  It makes sense for the DumpAsWKT, but for
 ST_DumpAsPolygons, the srid should be encoded in the geometry.  So seems
 to me it should be rewritten as
 >
 >
 > {{{
 >         SELECT ST_GeomFromText(wktgeomval.wktGeom, wktgeomval.srid),
 wktgeomval.val,
 >          FROM DumpAsWKTPolygons($1, 1) AS wktgeomval;
 > }}}
 >
 > Instead of what it is now which is
 >
 > {{{
 >         SELECT ST_GeomFromText(wktgeomval.wktGeom), wktgeomval.val,
 >         wktgeomval.srid FROM DumpAsWKTPolygons($1, 1) AS wktgeomval;
 > }}}
 >

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