<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<br>
<div class="moz-cite-prefix">On 12/27/2012 03:11 PM, Even Rouault
wrote:<br>
</div>
<blockquote
cite="mid:201212271511.44289.even.rouault@mines-paris.org"
type="cite">
<pre wrap="">Le jeudi 27 décembre 2012 15:11:23, Jan Hartmann a écrit :
</pre>
<blockquote type="cite">
<pre wrap="">On 12/27/2012 02:41 PM, Even Rouault wrote:
</pre>
<blockquote type="cite">
<pre wrap="">I've just pushed a fix since building overviews with "--config
COMPRESS_OVERVIEW JPEG -- config PHOTOMETRIC_OVERVIEW
YCBCR" when there's a .msk didn't work.
</pre>
<blockquote type="cite">
<pre wrap="">OK Even, thanks. This means that I should use gdal-svn?
</pre>
</blockquote>
<pre wrap="">
Not necessarily. I think you can workaround the issue by manually
building the overview on the .msk file as a post-processing step :
gdaladdo -ro --config COMPRESS_OVERVIEW DEFLATE small.tif.msk 2 4 8 16 32
64
</pre>
</blockquote>
<pre wrap="">
Do you mean I should use DEFLATE instead of JPEG as compression for
overviews for the time being? What is the difference in compression ratio?
</pre>
</blockquote>
<pre wrap="">
Use DEFLATE only for the mask file (see small.tif.msk in the above command
line), as it is a lossless compression, which is needed for a mask. JPEG is
fine for the imagery itself
</pre>
</blockquote>
<font face="Times New Roman, Times, serif">Sorry, I don't
understand. Where does that small.tif.msk come from? Until now I
had:<br>
- the original raster (big.tif)<br>
- the raster masked with nearblack (big_with_mask.tif)<br>
- the compressed raster (gdal_translate -co...)<br>
- the overviews built with gdaladdo<br>
<br>
The mask is part of the raster file, isn't it?</font><br>
<blockquote
cite="mid:201212271511.44289.even.rouault@mines-paris.org"
type="cite">
</blockquote>
<br>
</body>
</html>