| 106 | |
| 107 | |
| 108 | == `-co COMPRESS=` is broken! == |
| 109 | ''When I compress an image with gdalwarp the result is often many times larger than the original! '' |
| 110 | |
| 111 | The nature of gdalwarp and compression are fundamentally at odds with eath other, there is no fix forthcoming. The recommendation is to use gdalwarp without compression and then follow up with gdal_translate with compression: |
| 112 | {{{ |
| 113 | gdalwarp infile tempfile.tif ...options... |
| 114 | gdal_translate tempfile.tif outfile.tif -co compress=lzw ...etc. |
| 115 | }}} |
| 116 | |
| 117 | See ticket:1688 and linked discussions for a fuller explanation. |
| 118 | |