I read a geotiff file, and find that
poBand->GetColorTable()==NULL
But I use ERDAS IMAGINE9.2 (a software that deal with geotiff), I find that it
is not grey,but I use "gdal_translate -b 6 -of JPEG old.tif net.jpg", find that
is is grey.
why?
Thk u.___
weixj2003ld wrote:
I read a geotiff file, and find that
poBand->GetColorTable()==NULL
Wei,
Presumably GetColorTable() returns NULL because the GeoTIFF file
does not have a color table.
But I use ERDAS IMAGINE9.2 (a software that deal with geotiff), I find
that it is not grey,but I use "gdal_
Thk u very much.
I have two questions.
1.If I want to use the following combination,
Red=Band3
Green=Band2*0.8+band4*0.2;
Blue=band1
2. what is the general combination for good look jpeg file?
>weixj2003ld wrote:
>> I read a geotiff file, and find that
>> poBand->GetColorTable()==NULL
>
>Wei,
>
weixj2003ld wrote:
Thk u very much.
I have two questions.
1.If I want to use the following combination,
Red=Band3
Green=Band2*0.8+band4*0.2;
Blue=band1
Wei,
This will require programming or scripting. It cannot be done
with the stock commandline tools.
2. what is the general combination fo
Thk u for your detail reply.
1.Now,I have a DEM(.img) file,and its band number is 1.When I use
'gdal_translate -b 1 -of PNG old.img new.png' to create a png file(I think
its contains height map infomation,is it?).the error 'Warning 6:PNG driver
doesn't support data type Int16.Only eight bit' a
weixj2003ld wrote:
Thk u for your detail reply.
1.Now,I have a DEM(.img) file,and its band number is 1.When I use
'gdal_translate -b 1 -of PNG old.img new.png' to create a png file(I
think its contains height map infomation,is it?).the error 'Warning
6:PNG driver doesn't support data type In