== Creating OAM imagery with virtual datasets (VRT) == Analog of [[http://docs.oam.osgeo.org/storage/creating.html|Creating OpenAerialMap Imagery]] but using gdal VRTs to save disk space: {{{#!highlight sh export GDAL_TIFF_INTERNAL_MASK=YES gdalbuildvrt -srcnodata '159 0 80' prewarp.vrt Clear-Borders-No-Transparent.tif gdalwarp -co TILED=YES -dstalpha -t_srs EPSG:4326 -of VRT -multi prewarp.vrt warped.vrt gdal_translate -co TILED=YES -co JPEG_QUALITY=80 -co COMPRESS=JPEG -co PHOTOMETRIC=YCBCR -b 1 -b 2 -b 3 -mask 4 -of GTiff warped.vrt final.tif gdaladdo final.tif 2 4 8 16 32 64 128 256 }}}