[postgis-devel] [PostGIS] #1586: [raster] st_dumpaspolygons makes not valid polygons
PostGIS
trac at osgeo.org
Wed Feb 22 15:22:30 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):
So for a simple bow-tie situation, ST_DumpAsPolygons returns two polygons
{{{
WITH foo AS (
SELECT
ST_SetValue(
ST_SetValue(
ST_AddBand(
ST_MakeEmptyRaster(2, 2, 0, 0, 1,
1, 0, 0, 0)
, '8BUI'::text, 0, 0
)
, 1, 1, 1
)
, 2, 2, 1
) AS rast
)
SELECT
ST_AsText((ST_DumpAsPolygons(rast)).geom)
FROM foo
}}}
Need to find an example of a raster dumping invalid polygons.
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1586#comment:9>
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