Opened 4 months ago

Last modified 2 months ago

#3776 new defect

[raster] ST_DumpAsPolygons() stop differenciate values when they are higher than 1048576

Reported by: pracine Owned by: dustymugs
Priority: medium Milestone: PostGIS 2.5.0
Component: raster Version: 2.3.x
Keywords: raster Cc:

Description (last modified by pracine)

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).

Change History (4)

comment:1 Changed 4 months ago by pracine

Might be a symptom of #2353

comment:2 Changed 4 months ago by pracine

Description: modified (diff)

comment:3 Changed 4 months ago by robe

Milestone: PostGIS 2.3.3PostGIS 2.4.0

comment:4 Changed 2 months ago by dbaston

Milestone: PostGIS 2.4.0PostGIS 2.5.0
Note: See TracTickets for help on using tickets.