Re: [Gdal-dev] Changing a color in palette

2009-01-23 Thread Frank Warmerdam
darrepac wrote: If I have to do a script in Python, I will do it! So yes please, I would like to see an example Darre, With GDAL "trunk" the following seems to do the trick, and could be easily extended to loop over many files. import gdal def update_ct( file ): ds = gdal.Open( file,

Re: [Gdal-dev] Changing a color in palette

2009-01-23 Thread darrepac
If I have to do a script in Python, I will do it! So yes please, I would like to see an example thanks Frank Warmerdam wrote: > > darrepac wrote: >> Hello >> >> I have a set of geotiff 8bits file. >> I would like to change 1 color of the palette: puting the color >> 255,255,255 >> in the inde

Re: [Gdal-dev] Changing a color in palette

2009-01-23 Thread Frank Warmerdam
darrepac wrote: Hello I have a set of geotiff 8bits file. I would like to change 1 color of the palette: puting the color 255,255,255 in the index 123 instead of color 255,0,255. While not touching anything else. Is there a way to do this? because I have a big set of files and I did not find a

[Gdal-dev] Changing a color in palette

2009-01-23 Thread darrepac
Hello I have a set of geotiff 8bits file. I would like to change 1 color of the palette: puting the color 255,255,255 in the index 123 instead of color 255,0,255. While not touching anything else. Is there a way to do this? because I have a big set of files and I did not find any tool which per

Re: [gdal-dev] VPF parsing

2009-01-23 Thread Frank Warmerdam
Malm Paul wrote: Frank, How do I get past the inabilito of (MS Windows) to create file names including '*'? Paul, No idea. I wasn't aware of this limitation. I mostly work on linux. I would suggest just translating one layer at a time (explicitly) and renaming it with -nln which assigns