[gdal-dev] Help with python gdal.RasterizeLayer

Rudi von Staden rudivs at gmail.com
Sat Aug 7 09:36:46 EDT 2010


On 07/08/2010 13:29, Rudi von Staden wrote:
> Below I've included the output I'm getting (followed by my python 
> script). The RasterizeLayer command should be burning the polygon onto 
> the single band raster (initialized to have all cells = 255) using a 
> value of 0. However, the stats show that nothing has happened, and if 
> I check the resulting GTif, all cells are still 255.

Apologies. It seems I was a little hasty in checking my own output, and 
I had some issues with the extents being different. It is working now, 
but the statistics are not reported correctly ([255.0, 255.0, 255.0, 
0.0] before and after). Do I have to set them manually, or is there some 
way to recalculate them?

Rudi


More information about the gdal-dev mailing list