<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello Jorge,<br>
    <br>
    If I've got it right the attached VRT should apply the nodata values
    you require<br>
    to katrina.tif, assuming you save it in the same directory.<br>
    <br>
    I didn't use gdal2tiles but instead used this VRT with the ctb-tile
    utility<br>
    (which makes heavy use of GDAL -<br>
    <a class="moz-txt-link-freetext" href="https://github.com/homme/cesium-terrain-builder#ctb-tile">https://github.com/homme/cesium-terrain-builder#ctb-tile</a>) to
    generate the JPEG<br>
    tiles.  Using the docker image you can call it as follows, assuming
    katrina.tif<br>
    and katrina.vrt are in the current working directory:<br>
    <br>
    mkdir katrina # for saving the tiles to<br>
    docker run -v $(pwd):/data homme/cesium-terrain-builder ctb-tile
    --output-dir /data/katrina --output-format JPEG --profile mercator
    /data/katrina.vrt<br>
    <br>
    Best regards,<br>
    <br>
    Homme<br>
    <br>
    On 05/02/15 18:15, Jorge Arévalo wrote:<br>
    <span style="white-space: pre;">> - Generate JPEG tiles instead
      of PNG. Tried just replacing the driver's name (PNG) with JPEG.
      Didn't work. Base tiles are generated, but overview tiles are not.
      Getting this error instead: ERROR 1: Buffer too small<br>
      > - Apply a color to nodata value of generated tiles. Tried
      passing -a "200,0,0" to gdal2tiles, but it was ignored.<br>
      ><br>
      ><br>
      > Log file, with GDAL_DEBUG=On, where you can see the first
      problem (buffer too small):
<a class="moz-txt-link-freetext" href="https://dl.dropboxusercontent.com/u/6599273/errors/gdal/gdal2tiles_error.log">https://dl.dropboxusercontent.com/u/6599273/errors/gdal/gdal2tiles_error.log</a><br>
      > Modified version of gdal2tiles, to generate xyz caches
      instead of tms ones:
<a class="moz-txt-link-freetext" href="https://dl.dropboxusercontent.com/u/6599273/errors/gdal/gdal2tiles_modified.py">https://dl.dropboxusercontent.com/u/6599273/errors/gdal/gdal2tiles_modified.py</a><br>
      > tif tile for testing (same error with other ones):
      <a class="moz-txt-link-freetext" href="https://dl.dropboxusercontent.com/u/6599273/gis_data/katrina.tif">https://dl.dropboxusercontent.com/u/6599273/gis_data/katrina.tif</a><br>
      ><br>
      > Many thanks!<br>
      ><br>
      > -- <br>
      > Jorge Arévalo<br>
      ><br>
      > CartoDB<br>
      > <a class="moz-txt-link-freetext" href="http://cartodb.com/">http://cartodb.com/</a><br>
      >  <br>
      ><br>
      ><br>
      > _______________________________________________<br>
      > gdal-dev mailing list<br>
      > <a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
      > <a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/gdal-dev">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a></span><br>
    <br>
    <br>
  </body>
</html>