[gdal-dev] Help with python gdal.RasterizeLayer

2010-08-07 Thread Rudi von Staden
Greetings all, I am trying to create a raster mask using a polygon template. I can create the raster datasource to be the right extent, and using the same projection, but somehow gdal.RasterizeLayer does not do anything to the mask. Am I missing something in the implementation? Below I've

Re: [gdal-dev] Help with python gdal.RasterizeLayer

2010-08-07 Thread Rudi von Staden
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

Re: [gdal-dev] Help with python gdal.RasterizeLayer

2010-08-07 Thread Chaitanya kumar CH
GDALRasterBand::ComputeStatistics() recalculates them. On Sat, Aug 7, 2010 at 7:06 PM, Rudi von Staden rud...@gmail.com wrote: 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