[Gdal-dev] PCT and ECW
Frank Warmerdam
warmerdam at pobox.com
Wed Feb 22 08:34:47 EST 2006
Andrew Williams wrote:
> Dear all,
> I have a problem with a group of images that have PCT's
>
> I've mosaicked them and needed to set the -pct option otherwise they came out very dark and murky.
>
> What I want to do is gdal_translate them to ECW
>
> When I do this I get the following error
>
> ERROR 6: SetColorTable() Not supported by this dataset.
> ERROR 5: Destination Band 1 appears to be read-only.
Andrew,
ECW does not support colormapped images (as far as I know). You will need
to directly encode the color table. That is turn the one band + PCT images
into 3 band RGB images. This can be accomplished with the pct2rgb.py python
script if you have GDAL built with python support.
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent
More information about the Gdal-dev
mailing list