[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

Re: [gdal-dev] Looking for GDAL windows bindings for python 2.6.5

2010-07-20 Thread Rudi von Staden
Hi Yvonne, I've just done exactly what you refer to, and had the same challenges with links. I ended up using the following setup: Python 2.6 install: http://www.python.org/ftp/python/2.6/python-2.6.msi GDAL bindings for Python 2.6:

Re: [gdal-dev] Looking for GDAL windows bindings for python 2.6.5

2010-07-20 Thread Rudi von Staden
I forgot to mention, I found this document very useful in getting my setup right: http://www.gis.usu.edu/~chrisg/python/2009/docs/gdal_win.pdf Rudi On 20/07/2010 13:39, Rudi von Staden wrote: Hi Yvonne, I've just done exactly what you refer to, and had the same challenges with links