[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 =

Re: [gdal-dev] trying to change regionator image resampling to nearest-neighbor

2009-12-31 Thread Roger André
Hi Mary Jo, Sounds like you have started down a slightly different path to resolve this by using gdal2tiles.py, but I'm still a bit curious about the results you were seeing with the regionator. Would you mind sending me a couple screenshots that show the before and after images, with haloing?

[gdal-dev] Installing gdal

2009-12-31 Thread Fernando Miguez
Hi all, I'm trying to install gdal (1.6.1) and get the following error python setup.py build [...] gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fPIC

Re: [gdal-dev] Installing gdal

2009-12-31 Thread Howard Butler
On Dec 31, 2009, at 12:24 PM, Fernando Miguez wrote: gcc: error trying to exec 'cc1plus': execvp: No such file or directory error: command 'gcc' failed with exit status 1 You have no g++ installed, which you need to build the GDAL Python bindings.

[gdal-dev] gdal_translate -unscale option

2009-12-31 Thread Frank Warmerdam
Folks, I have added the -unscale option to gdal_translate. Some image formats compact pixel values by subtracting an offset and rescaling - for instance to fit floating point values into 16bit pixels. The scaling and offset can be carried with the data model, and are accessable via the

[gdal-dev] IAU 2000 Coordinate System Dictionary

2009-12-31 Thread Frank Warmerdam
Folks, I have received a request from Trent Hare to include support for the IAU (International Astronomical Union) set of planetary coordinate systems with GDAL. I have distributed this in the past with FWTools, but had hesitated to include it in the core GDAL distribution since it amounts to

Re: [gdal-dev] IAU 2000 Coordinate System Dictionary

2009-12-31 Thread Chaitanya kumar CH
Frank, IMHO, it is a hassle when a user finds that GDAL is not working for something. The bandwidth is well spent. I noticed powerful media players discarded because they needed extra codecs. On Thu, Dec 31, 2009 at 8:45 PM, Frank Warmerdam warmer...@pobox.com wrote: Folks, I have received