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

PostGIS trac at osgeo.org
Fri Apr 30 04:34:52 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 robe):

 Okay I'm getting output now.  But still a couple of problems

 1) Very minor -- but if I feed a raster with no bands, I get an assert
 error in postgres.exe that I have less than one band.  I presume this is
 expected?  Except it should just be a notice rather than kicking me into
 visual studio debugger - well hmm I guess since we are still in alpha it
 might be best to just leave as is if easier to debug.

 2) This one is very strange and it seems very intermittent.  Once it fails
 I can't get it to work again for another 10 or so tries and then it works.
 I haven't ever gotten just the inner subselect to work without doing
 restrictions on val which is even more bizzarre since I can't see how the
 ST_Union would ever work if the inner fails all the time.  I'm running
 1.5.1 so I'll upgrade to 1.5.2SVN and see if I experience any difference.
 I haven't looked at the rendered image yet to veerify it looks correct.

 {{{
 SELECT ST_Union(geom)
 FROM (SELECT (ST_DumpAsPolygons(rast)).geom
 FROM ch13.pele
 ) As foo
 }}}

 This gives error

 ERROR:  parse error - invalid geometry
 HINT:  "...00,52 101,53 101,54 101,54 99,53 99))" <-- parse error at
 position 64 within geometry
 CONTEXT:  SQL function "st_dumpaspolygons" statement 1

 If I run Just the inner query
 I get the same error.

 I'll attach the file in a bit.

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