[postgis-devel] [PostGIS] #1586: [raster] st_dumpaspolygons makes not valid polygons

PostGIS trac at osgeo.org
Wed Feb 22 15:28:12 PST 2012


#1586: [raster] st_dumpaspolygons makes not valid polygons
----------------------+-----------------------------------------------------
 Reporter:  jomarlla  |       Owner:  dustymugs    
     Type:  defect    |      Status:  assigned     
 Priority:  high      |   Milestone:  PostGIS 2.0.0
Component:  raster    |     Version:  trunk        
 Keywords:            |  
----------------------+-----------------------------------------------------

Comment(by dustymugs):

 Success!  Found one...

 {{{
 WITH foo AS (
         SELECT (ST_DumpAsPolygons(
                 ST_SetValue(
                         ST_SetValue(
                                 ST_AddBand(
                                         ST_MakeEmptyRaster(4, 4, 0, 0, 1,
 1, 0, 0, 0)
                                         , '8BUI'::text, 1, 0
                                 )
                                 , 2, 2, 0
                         )
                         , 3, 3, 0
                 )
         )).geom AS geom
 )
 SELECT
         ST_IsValid(geom),
         ST_AsText(geom)
 FROM foo
 }}}

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