<div dir="ltr"><div><div>Summing up my experience with GTIF orthoimages, based on suggestions from other users, if someone is interested in:<br><br></div>- GTIF with internal JPEG compression + internal pyramids/overviews also with JPEG compression (see a. and b. commands below as examples).<br></div><div>- As you said, required GDAL compiled with ECW (FWTools on Windows, for example).<br></div><div><br></div><br>GDAL commands:<br><div><div><div><br>a. Reading ECW and compressing to JPG (set your favourite quality, 80 is a good choice for orthoimages; also CACHEMAX could be increased):<br><br>gdal_translate --config GDAL_CACHEMAX 1000 --config GDAL_PAM_ENABLED NO -of GTIFF -co COMPRESS=JPEG -co JPEG_QUALITY=80 -co PHOTOMETRIC=YCBCR "source_image.ecw" "target_image.tif"<br><br>b. Adding internal pyramids/overviews with JPG compression (select your resampling method, I prefer average):<br><br>gdaladdo --config COMPRESS_OVERVIEW JPEG --config PHOTOMETRIC_OVERVIEW YCBCR --config INTERLEAVE_OVERVIEW PIXEL -r average "image.tif" 2 4 8 16 32 64 128<br><br><br></div><div>I'm using a batch script on Windows, useful to be applied to a set of selected images on File explorer. I hope it's easy to write a script in bash or python, if you are able to install ECW support on GNU/Linux.<br><div><br></div><div>Unfortunatly, a lot of public images are locked in ECW format (for example our orthoimages at Spanish National Geographic Institute (IGN) [<a href="http://www.ign.es/atom/dataset_feeds/_pnoaMA.es.xml">1</a>]), but I know they are doing an effort to release them as GTIF, could be with internal JPEG.<br></div><div><br></div>Enrique.<br></div><div><br>[<a href="http://www.ign.es/atom/dataset_feeds/_pnoaMA.es.xml">1</a>] <a href="http://www.ign.es/atom/dataset_feeds/_pnoaMA.es.xml">http://www.ign.es/atom/dataset_feeds/_pnoaMA.es.xml</a><br><br><br></div><div><div class="gmail_extra"><br><div class="gmail_quote">2015-08-04 5:45 GMT+02:00 Simon Cropper <span dir="ltr"><<a href="mailto:contact@simonchristophercropper.com" target="_blank">contact@simonchristophercropper.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  

    
  
  <div bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    I have recently tried to get QGIS to work with ECW files.<br>
    <br>
    Despite several days of multiple
    installs/reinstalls/uninstalls/lib-upgrades/etc I have not managed
    to get ECW to be opened by QGIS. This is really frustrating as I am
    keen to use QGIS on an upcoming project.<br>
    <br>
    As an alternative, I would like to pose the following couple of
    questions...<br>
    <br>
    My first question is, what is a good alternative to ECW files for
    use on QGIS?<br>
    <br>
    The second question, how do I convert the ECW file into this format
    without using a propriety software package?<span><font color="#888888"><br>
    <br>
    <div>-- <br>
      Cheers Simon <br>
      <span style="padding:1cm;font-family:sans-serif;font-size:150%"></span><br>
    </div>
  </font></span></div>

<br>_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br></blockquote></div><br></div></div></div></div></div>