{"version":"1.0","type":"rich","title":"gdalwarp as a gdal_merge.py alternative in a GNU Makefile","description":"This example demonstrates how GNU Make and GDAL’s `gdalwarp` command-line tool can replace `gdal_merge.py` for mosaicking multiple GeoTIFF files without loading all data into memory. It shows a Makefile recipe that first runs `gdalwarp` with `-overwrite` on the initial input to create the output, then appends each remaining file via a `$(foreach)` loop. The code uses GDAL’s GTiff creation options (e.g., `TILED=YES`, `COMPRESS=LZW`) and multi-threading flags (`-multi`, `-wo NUM_THREADS=ALL_CPUS`), while the makefile relies on `.ONESHELL` to chain commands. The data source is a set of five local GeoTIFF files (`a.tif` through `e.tif`).","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-5856e901156a474b64523e164db3573c?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}