Opened 13 years ago
Closed 13 years ago
Last modified 13 years ago
#3396 closed defect (fixed)
GDALRasterizeLayers only sets the first band from the ATTRIBUTE option
|Reported by:||flupke||Owned by:||chaitanya|
When using the ATTRIBUTE option of GDALRasterizeLayers, the values are read from the attributes table and cast to an array with the
gvBurnScanline and similar function then receive this value in psInfo->padfBurnValue, and set each band value from this array. The source data being one element long, only the first value is valid, and the siblings are garbage (in my test this gives blueish images instead of grayscale, but I think it may also cause access violations).
Attached is a patch correcting the problem (I can provide an example illustrating the bug if needed).
Change History (5)
by , 13 years ago
comment:1 by , 13 years ago
|Component:||default → GDAL_Raster|
|Version:||unspecified → svn-trunk|
comment:2 by , 13 years ago
|Component:||GDAL_Raster → Algorithms|
comment:3 by , 13 years ago
|Status:||new → closed|
Please reproduce the problem, review the patch and apply as appropriate. I'd like it retrofit into 1.7 branch too.