[postgis-tickets] [PostGIS] #3776: [raster] ST_DumpAsPolygons() stop differenciate values when they are higher than 1048576
PostGIS
trac at osgeo.org
Tue Jun 20 14:19:24 PDT 2017
#3776: [raster] ST_DumpAsPolygons() stop differenciate values when they are higher
than 1048576
----------------------+---------------------------
Reporter: pracine | Owner: dustymugs
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 2.3.3
Component: raster | Version: 2.3.x
Resolution: | Keywords: raster
----------------------+---------------------------
Description changed by pracine:
Old description:
> This works fine:
>
> SELECT (ST_DumpAsPolygons(ST_SetValue(ST_AddBand(ST_MakeEmptyRaster(1, 2,
> 0, 0, 1), '32BUI'::text, 1048575), 1, 1, 1048576))).* rast
>
> returning two polygons, but this fails:
>
> SELECT (ST_DumpAsPolygons(ST_SetValue(ST_AddBand(ST_MakeEmptyRaster(1, 2,
> 0, 0, 1), '32BUI'::text, 1048576), 1, 1, 1048577))).* rast
>
> The only difference is when the pixel values get over 1048576 (which is
> 0x10000 by the way).
New description:
This works fine:
SELECT (ST_DumpAsPolygons(ST_SetValue(ST_AddBand(ST_MakeEmptyRaster(1, 2,
0, 0, 1), '32BUI'::text, 1048575), 1, 1, 1048576))).* rast
returning two polygons, but this fails:
SELECT (ST_DumpAsPolygons(ST_SetValue(ST_AddBand(ST_MakeEmptyRaster(1, 2,
0, 0, 1), '32BUI'::text, 1048576), 1, 1, 1048577))).* rast
The only difference is when the pixel values get over 1048576 (which is
0x100000 by the way).
--
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3776#comment:2>
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-tickets
mailing list