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)
comment:2 by , 14 years ago
|Component:||GDAL_Raster → Algorithms|