| 118 | Alternatively, you can use a VRT file as the output format of gdalwarp. The VRT file is just an XML file that will be created immediately. The gdal_translate operations will be of course a bit slower as it will do the real warping operation. |
| 119 | |
| 120 | {{{ |
| 121 | gdalwarp -of VRT infile tempfile.vrt ...options... |
| 122 | gdal_translate tempfile.vrt outfile.tif -co compress=lzw ...etc. |
| 123 | }}} |
| 124 | |
| 125 | == [GeoTIFF output] Use `-co TILED=YES` when possible == |
| 126 | |
| 127 | Due to the way gdalwarp proceeds, when generating a huge output file (width > 100,000 pixels for example), you should consider producing a tiled GeoTIFF file if it is an option for you (some software will only read strip TIFF files). If you have a lot of RAM, increasing the maximum cache size and the working buffers of the warping algorithm as explained above might also help if you generate a strip TIFF file. |
| 128 | |
| 129 | |
| 130 | |