[gdal-dev] Masking issue

Chaitanya kumar CH chaitanya.ch at gmail.com
Tue Apr 3 13:35:17 EDT 2012


Oyvind,

One easy method is to create a vrt file with an alpha band for the original
tiff. You can use this to create a compressed raster file that will be
transparent at nodata pixels.

gdalbuildvrt -addalpha

http://www.gdal.org/gdalbuildvrt.html

On Tue, Apr 3, 2012 at 5:26 PM, Oyvind Idland <oyvind.idland at gmail.com>wrote:

> Hello,
>
>
> I got one problem: I have a bunch of uncompressed TIFF tiles, which I am
> converting to compressed GeoTiff. I would
> like to mask away the rgb(0,0,0) values.
>
> However, when I use NODATA on my VRT dataset, there are JPEG artifacts
> around the edges when rendering.
>
> Is it possible to generate a transparency mask based on NDATA before
> compressing, or is there any other/better way of
> doing this ?
>
> thanks,
>
> - oyvind
>
>
> _______________________________________________
> 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/20120403/9e33b519/attachment.html


More information about the gdal-dev mailing list