Re: [gdal-dev] Masking issue

2012-04-03 Thread Oyvind Idland
Hi Chaitanya, thanks, i'll try that when I get back to it tomorrow. But: I guess I will have to add -vrtnodata aswell, hopefully it will add pixels to the mask ? I have already converted all the source TIFFs to lossless compressed GeoTiff (which don't produce undesired JPEG artifacts), and made

Re: [gdal-dev] Masking issue

2012-04-03 Thread Chaitanya kumar CH
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 wro

[gdal-dev] Masking issue

2012-04-03 Thread Oyvind Idland
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

Re: [gdal-dev] Masking

2008-07-28 Thread Frank Warmerdam
Patrick Cannon wrote: Hello, Has anyone used the GDAL mask feature? I would like to mark part of an image as transparent. The area is defined as a polygon. I have been trying to find documentation or examples on how to use the mask feature but, so far no luck. Could someone please point

[gdal-dev] Masking

2008-07-28 Thread Patrick Cannon
Hello, Has anyone used the GDAL mask feature? I would like to mark part of an image as transparent. The area is defined as a polygon. I have been trying to find documentation or examples on how to use the mask feature but, so far no luck. Could someone please point me in the right direction?