Label

Books (1) CARTO (3) Fun (21) GBDX (1) geoserver (1) GIS (57) greed (4) memo (4) movie (1) music (2) python (4) R (12) statistics (10) study (20) swim (5) tools (19) Ubuntu (7)

2011/12/14

【GDAL】gdal_merge -- merge many raster files

# make list of all the file you want to merge
xxx1.tif
xxx2.tif
xxx3.tif
...
-> save as "list.txt" in the same dir

# start OSGEO4W

# merge!!
python C:\osgeo4w\bin\gdal_merge.py -o [output file name] -ps [cell size (1.0 1.0)] --optfile [list.txt]

#example
 python C:\OSGeo4W\bin\gdal_merge.py -o merged.tif -ps 0.00011111111 0.00011111111 --optfile list.txt