[gdal-dev] Setting nodata tag with Python API

2009-12-31 Thread Roger André
Hi All, I'm using the Python API to build some GeoTIFFs and would like to set the nodata value to - at creation time. How do I do that? Below is a sample of my code def makeRaster(self): out_drv = gdal.GetDriverByName('GTiff') out_ds = out_drv.Create(self.raster_name, 4320, 2160

Re: [gdal-dev] Setting nodata tag with Python API

2009-12-31 Thread Frank Warmerdam
Roger André wrote: Hi All, I'm using the Python API to build some GeoTIFFs and would like to set the nodata value to - at creation time. How do I do that? Below is a sample of my code def makeRaster(self): out_drv = gdal.GetDriverByName('GTiff') out_ds =