<html style="direction: ltr;">
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
    <style type="text/css">body p { margin-bottom: 0cm; margin-top: 0pt; } </style>
  </head>
  <body style="direction: ltr;" bidimailui-charset-is-forced="true"
    bgcolor="#FFFFFF" text="#000000">
    <font face="Helvetica, Arial, sans-serif">Thanks for the detailed
      tip!<br>
      <br>
    </font><br>
    <div class="moz-cite-prefix">On 2017-03-05 20:30 PM, Carlos López
      PSIG wrote:<br>
    </div>
    <blockquote
cite="mid:CAGvsbY6Xo0GSfwL7cAC4VLHctUbF20OiKkiZhatznBExJ_mnzQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div class="gmail_default"
          style="font-family:georgia,serif;font-size:small">Hi,</div>
        <div class="gmail_default"
          style="font-family:georgia,serif;font-size:small">I usually
          run the next bat process:</div>
        <div class="gmail_default"
          style="font-family:georgia,serif;font-size:small"><br>
        </div>
        <div class="gmail_default"
          style="font-family:georgia,serif;font-size:small">
          <div class="gmail_default"><i>REM</i></div>
          <div class="gmail_default"><i>set SRC=25831</i></div>
          <div class="gmail_default"><i>REM</i></div>
          <div class="gmail_default"><i>REM start for</i></div>
          <div class="gmail_default"><i>REM</i></div>
          <div class="gmail_default"><i>for /R %%f in (*.ecw) do (</i></div>
          <div class="gmail_default"><i>REM</i></div>
          <div class="gmail_default"><i>REM convert to geotif</i></div>
          <div class="gmail_default"><i>REM</i></div>
          <div class="gmail_default"><i>call
              C:\OSGeo4W64\bin\gdal_translate -a_srs EPSG:%SRC% "%%f"
              "%%~dpnf.tif" -co COMPRESS=JPEG -co JPEG_QUALITY=60 -co
              BLOCKXSIZE=128 -co BLOCKYSIZE=128</i></div>
          <div class="gmail_default"><i>REM</i></div>
          <div class="gmail_default"><i>REM create pyramides</i></div>
          <div class="gmail_default"><i>REM</i></div>
          <div class="gmail_default"><i>call C:\OSGeo4W64\bin\gdaladdo
              -r average --config COMPRESS_OVERVIEW JPEG --config
              PHOTOMETRIC_OVERVIEW YCBCR --config INTERLEAVE_OVERVIEW
              PIXEL --config JPEG_QUALITY_OVERVIEW 80 "%%~dpnf.tif" 2 4
              8 16 32 64 128 256</i></div>
          <div class="gmail_default"><i>REM</i></div>
          <div class="gmail_default"><i>REM end for</i></div>
          <div class="gmail_default"><i>REM</i></div>
          <div class="gmail_default"><i>)</i></div>
        </div>
        <div class="gmail_extra"><br>
        </div>
        <div class="gmail_extra">
          <div class="gmail_default"
            style="font-family:georgia,serif;font-size:small">​the
            result are very fine for us!​</div>
          <div class="gmail_default"
            style="font-family:georgia,serif;font-size:small"><br>
          </div>
          <div class="gmail_default"
            style="font-family:georgia,serif;font-size:small">Regards,</div>
          <br clear="all">
          <div>
            <div class="gmail_signature"
              data-smartmail="gmail_signature">
              <div dir="ltr">
                <div>
                  <div dir="ltr">
                    <div><font face="verdana, sans-serif"><font
                          style="font-size:small"><b><a
                              moz-do-not-send="true"
                              href="http://www.psig.es" target="_blank"><img
                                moz-do-not-send="true"
src="https://dl.dropboxusercontent.com/u/21435024/logo_PSIG_vertical_v4.png"></a><br>
                          </b></font></font></div>
                    <div><font face="verdana, sans-serif"><font
                          style="font-size:small"><b><br>
                          </b></font></font></div>
                    <div><b
                        style="font-size:small;font-family:verdana,sans-serif"><font
                          color="#444444">Carlos López Quintanilla</font></b><br>
                    </div>
                    <font face="verdana, sans-serif"><font
                        style="font-size:small"><br>
                      </font></font><font face="verdana, sans-serif"
                      color="#38761d"><a moz-do-not-send="true"
                        href="http://www.psig.es" target="_blank">www.psig.es</a></font>
                    <div><a moz-do-not-send="true"
                        href="mailto:carlos.lopez@psig.es"
                        style="font-family:verdana,sans-serif;font-size:small"
                        target="_blank"><font color="#38761d">carlos.lopez@psig.es</font></a><font
                        face="verdana, sans-serif"><font><br>
                          <font color="#38761d" size="2">+34 699.680.261</font></font><br>
                      </font><br style="font-size:small">
                      <div dir="ltr"><font size="1"><a
                            moz-do-not-send="true" value="+34699680261"
                            style="color:rgb(17,85,204)"><font
                              style="background-color:rgb(255,255,255)"
                              face="verdana, sans-serif"><font
                                color="#000000">N</font><font
                                color="#444444">ota legal: Este mensaje
                                y cualquier archivo adjunto está
                                destinado únicamente a la </font></font></a><font
                            face="verdana, sans-serif"><a
                              moz-do-not-send="true"
                              value="+34699680261"
                              style="color:rgb(17,85,204)">
                              <div dir="ltr"
                                style="display:inline!important"><font
                                  color="#444444">persona a quien se
                                  dirige y es confidencial. Si usted ha
                                  recibido este mensaje por </font></div>
                            </a>
                            <div dir="ltr"
                              style="display:inline!important"><a
                                moz-do-not-send="true"
                                value="+34699680261"
                                style="color:rgb(17,85,204)"><font
                                  color="#444444">error, por favor,
                                  comuníqueselo al remitente y bórrelo
                                  inmediatamente. La utilización ,</font></a><a
                                moz-do-not-send="true"
                                value="+34699680261"
                                style="color:rgb(17,85,204)">
                                <div dir="ltr"
                                  style="display:inline!important"><font
                                    color="#444444">revelación y/o
                                    reproducción del mensaje puede
                                    constituir un delito.</font></div>
                              </a></div>
                          </font></font></div>
                      <div dir="ltr"><font face="verdana, sans-serif"
                          color="#444444" size="1"><br>
                        </font></div>
                      <div dir="ltr"><font face="verdana, sans-serif"
                          size="1"><font color="#444444">Protección de
                            Datos: Le informamos que sus datos de
                            contacto electrónico se hallan </font><a
                            moz-do-not-send="true" value="+34699680261"
                            style="color:rgb(17,85,204)">
                            <div dir="ltr"
                              style="display:inline!important"><font
                                color="#444444">incorporados a un
                                fichero titularidad de CARLOS LÓPEZ
                                QUINTANILLA, al objeto de </font></div>
                          </a>
                          <div dir="ltr"
                            style="display:inline!important"><a
                              moz-do-not-send="true"
                              value="+34699680261"
                              style="color:rgb(17,85,204)"><font
                                color="#444444">envío de información,
                                respuesta a consultas y contactos
                                genéricos. </font></a><a
                              moz-do-not-send="true"
                              value="+34699680261"
                              style="color:rgb(17,85,204)">
                              <div dir="ltr"
                                style="display:inline!important"><font
                                  color="#444444">Puede ejercer los
                                  derechos de acceso, rectificación,
                                  cancelación y oposición que </font></div>
                            </a></div>
                          <div dir="ltr"
                            style="display:inline!important"><a
                              moz-do-not-send="true"
                              value="+34699680261"
                              style="color:rgb(17,85,204)"><font
                                color="#444444">establece la LOPD en
                                cualquier momento, mediante escrito,
                                acompañado de copia de </font></a><a
                              moz-do-not-send="true"
                              value="+34699680261"
                              style="color:rgb(17,85,204)">
                              <div dir="ltr"
                                style="display:inline!important"><font
                                  color="#444444">documento oficial que
                                  le identifique, dirigido a CARLOS
                                  LÓPEZ QUINTANILLA CL. P</font></div>
                            </a></div>
                          <a moz-do-not-send="true" value="+34699680261"
                            style="color:rgb(17,85,204)">
                            <div dir="ltr"
                              style="display:inline!important"><font
                                color="#444444">arellada, 8 E2 de
                                Corbera de Llobregat, 08757-Barcelona.</font></div>
                          </a></font></div>
                      <div dir="ltr"><font face="verdana, sans-serif"
                          color="#444444" size="1"><br>
                        </font></div>
                      <div dir="ltr"><font face="verdana, sans-serif"
                          size="1">
                          <div dir="ltr"
                            style="display:inline!important"><a
                              moz-do-not-send="true"
                              value="+34699680261"
                              style="color:rgb(17,85,204)"><font
                                color="#444444">También podrá oponerse a
                                nuestros envíos de comunicaciones
                                comerciales (Art.21.2</font></a><a
                              moz-do-not-send="true"
                              value="+34699680261"
                              style="color:rgb(17,85,204)">
                              <div dir="ltr"
                                style="display:inline!important"><font
                                  color="#444444">de la LSSI) a través
                                  de la siguiente dirección de correo
                                  electrónico: admin@psig.es</font></div>
                            </a></div>
                        </font></div>
                      <br>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
          <br>
          <div class="gmail_quote">2017-03-04 22:27 GMT+01:00 Micha
            Silver <span dir="ltr"><<a moz-do-not-send="true"
                href="mailto:tsvibar@gmail.com" target="_blank">tsvibar@gmail.com</a>></span>:<br>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex"><span
                class=""><br>
                <br>
                On 03/04/2017 09:42 PM, Even Rouault wrote:<br>
                <blockquote class="gmail_quote" style="margin:0 0 0
                  .8ex;border-left:1px #ccc solid;padding-left:1ex">
                  <br>
                  On samedi 4 mars 2017 18:55:03 CET Micha Silver wrote:<br>
                  <br>
                  > Hello:<br>
                  <br>
                  > (I'm double posting as this problem is somewhere
                  between GDAL and QGIS.)<br>
                  <br>
                  ><br>
                  <br>
                  > I have converted an ECW compressed aerial photo
                  to geotiff with JPEG<br>
                  <br>
                  > compression on a Windows computer with
                  gdal_translate. The resulting tif<br>
                  <br>
                  > image displays fine with QGIS on the Windows
                  machine.  GDAL version 2.1.3<br>
                  <br>
                  > on the Windows computer, and QGIS 2.18.4 My
                  command was similar to:<br>
                  <br>
                  > gdal_translate -of GTiff -projwin ..... -co
                  TILED=YES -co TFW=YES -co<br>
                  <br>
                  > COMPRESS=JPEG -co PHOTOMETRIC=YCBCR in.ecw
                  out.tif<br>
                  <br>
                  ><br>
                  <br>
                  > I then copy the tif (and tfw) to my Linux
                  machine, and try to open with<br>
                  <br>
                  > QGIS, but QGIS crashes immediately. I should note
                  that gdalinfo shows full<br>
                  <br>
                  > information on both the Windows and Linux
                  systems. On the Linux computer<br>
                  <br>
                  > GDAL is 2.1.2 and QGIS is 2.18.4 .<br>
                  <br>
                  On the Linux system where this crashes with QGIS,
                  could you do :<br>
                  <br>
                  gdalinfo -checksum -stats the.tif<br>
                  <br>
                  If this crashes, the issue is clearly in GDAL.
                  Otherwise it is likely in QGIS.<br>
                  <br>
                </blockquote>
              </span>
              No crash, but I do see a Warning:<br>
              <br>
              gdalinfo -checksum -stats kidron_e2.tif Driver:
              GTiff/GeoTIFF Files: kidron_e2.tif Size is 45200, 36000
              ....<br>
              <br>
              Warning 1: JPEGLib:Premature end of JPEG file
              Minimum=0.000, Maximum=255.000, Mean=163.947,
              StdDev=38.307 Checksum=49932 Metadata:
              STATISTICS_MAXIMUM=255 STATISTICS_MEAN=163.9473567613<wbr>1
              STATISTICS_MINIMUM=0 STATISTICS_STDDEV=38.306687300<wbr>16
              Band 2 Block=256x256 Type=Byte, ColorInterp=Green
              Description = Green Minimum=0.000, Maximum=255.000,
              Mean=167.305, StdDev=32.125 Checksum=52 Metadata:
              STATISTICS_MAXIMUM=255 STATISTICS_MEAN=167.3047566274
              STATISTICS_MINIMUM=0 STATISTICS_STDDEV=32.124800654<wbr>502
              Band 3 Block=256x256 Type=Byte, ColorInterp=Blue
              Description = Blue Minimum=0.000, Maximum=255.000,
              Mean=146.241, StdDev=31.604 Checksum=11457 Metadata:
              STATISTICS_MAXIMUM=255 STATISTICS_MEAN=146.2406223388<wbr>2
              STATISTICS_MINIMUM=0 STATISTICS_STDDEV=31.603809219<wbr>917<br>
              <br>
              Also I have found that creating overlays seems to solve
              the problem (?!). After running:<br>
              <br>
              gdaladdo --config COMPRESS_OVERVIEW JPEG --config
              PHOTOMETRIC_OVERVIEW YCBCR --config INTERLEAVE_OVERVIEW
              PIXEL -r average kidron_e2.tif 2 4 8 16<br>
              <br>
              the tiff opens fine in QGIS.<br>
              <br>
              Regards,<br>
              <br>
              Micha<span class=""><br>
                <br>
                <blockquote class="gmail_quote" style="margin:0 0 0
                  .8ex;border-left:1px #ccc solid;padding-left:1ex">
                  ><br>
                  <br>
                  > Any ideas what could be the cause of QGIS
                  crashing with the gdal_translate<br>
                  <br>
                  > converted tif image? Is there something that
                  needs to be done on windows to<br>
                  <br>
                  > create a Linux usable geotiff??<br>
                  <br>
                  ><br>
                  <br>
                  > Thanks<br>
                  <br>
                  -- <br>
                  <br>
                  Spatialys - Geospatial professional services<br>
                  <br>
                  <a moz-do-not-send="true"
                    href="http://www.spatialys.com" rel="noreferrer"
                    target="_blank">http://www.spatialys.com</a><br>
                  <br>
                </blockquote>
                <br>
              </span><span class="">
                -- <br>
                Micha Silver<br>
                cell: <a moz-do-not-send="true"
                  href="tel:%2B972-523-665918" value="+972523665918"
                  target="_blank">+972-523-665918</a><br>
                <br>
              </span>
              ______________________________<wbr>_________________<br>
              Qgis-user mailing list<br>
              <a moz-do-not-send="true"
                href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
              List info: <a moz-do-not-send="true"
                href="https://lists.osgeo.org/mailman/listinfo/qgis-user"
                rel="noreferrer" target="_blank">https://lists.osgeo.org/mailma<wbr>n/listinfo/qgis-user</a><br>
              Unsubscribe: <a moz-do-not-send="true"
                href="https://lists.osgeo.org/mailman/listinfo/qgis-user"
                rel="noreferrer" target="_blank">https://lists.osgeo.org/mailma<wbr>n/listinfo/qgis-user</a></blockquote>
          </div>
          <br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Qgis-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a>
List info: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
Unsubscribe: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a></pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Micha Silver
cell:+972-523-665918</pre>
  </body>
</html>