[gdal-dev] '-mask' option of gdal_translate doesn't work

2012-09-11 Thread Peter Zhang
Hello, I tried command line below that is copied from http://www.gdal.org/gdal_translate.html: gdal_translate rgba.tif withmask.tif -b 1 -b 2 -b 3 -mask 4 -co COMPRESS=JPEG -co PHOTOMETRIC=YCBCR --config GDAL_TIFF_INTERNAL_MASK YES It doesn’t generate transparency channel in output. But if I

Re: [gdal-dev] How to cut a Raster map with a KML file

2012-09-11 Thread Eli Adam
Luis, On Tue, Sep 11, 2012 at 11:14 AM, Luis Lisboa luislisboa1...@gmail.com wrote: Hi Eli Probably I was not clear: When I use this it outputs a geotiff with two bands: 1 with the real data and another one with the mask of the pixels that fall inside each polygon. I just want to have an

[gdal-dev] MUTEX_NONE question

2012-09-11 Thread Martin Chapman
If I don't want to use GDAL in thread safe mode on Windows can just define MUTEX_NONE in the nmake.opt file? If not, is there a way I can do it. Also, I want to avoid caching. Can I just define the env var GDAL_FORCE_CACHING and set it to NO? Will that also avoid any thread synchronization?

Re: [gdal-dev] MUTEX_NONE question

2012-09-11 Thread Frank Warmerdam
On Tue, Sep 11, 2012 at 1:08 PM, Martin Chapman chapm...@pixia.com wrote: If I don’t want to use GDAL in thread safe mode on Windows can just define MUTEX_NONE in the nmake.opt file? If not, is there a way I can do it. Martin, I believe so, yes. Also, I want to avoid caching. Can I just