[gdal-dev] Translating files with a external mask file

Chaitanya kumar CH chaitanya.ch at gmail.com
Thu Oct 27 11:52:14 EDT 2011


Travis,

There might be a problem with the mask band's number. Try fiddling with it.
http://www.gdal.org/gdal_translate.html

On Thu, Oct 27, 2011 at 8:44 PM, Travis Kirstine
<traviskirstine at gmail.com>wrote:

> I have a rgb geotiff with a external mask file
> rgb_withmaskfile.tif.msk, I would like to convert the files to a
> compressed GeoTiff using a command simalar to the one below.  This
> command will generate a illegal band # error
>
> gdal_translate rgb_withmaskfile.tif results.tif -b 1 -b 2 -b 3 -mask 4
> -co COMPRESS=JPEG -co PHOTOMETRIC=YCBCR --config
> GDAL_TIFF_INTERNAL_MASK YES
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>



-- 
Best regards,
Chaitanya kumar CH.

+91-9494447584
17.2416N 80.1426E
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20111027/b584cfeb/attachment.html


More information about the gdal-dev mailing list