Changes between Version 3 and Version 4 of UserDocs/GdalMerge
- Timestamp:
- Feb 20, 2008, 1:06:24 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
UserDocs/GdalMerge
v3 v4 1 1 = The `gdal_merge` utility = 2 2 ''A python script to mosaic a set of images'' 3 4 3 ''The official documentation for gdal_merge is at http://www.gdal.org/gdal_merge.html.'' 5 6 4 7 5 gdal_merge.py uses nearest neighbour resampling. If you want control over the resampling used, you should use gdalwarp instead. 8 6 9 == {Win}Are there other ways of getting a list of images into gdal_merge without putting them all on the command line? ==7 == Are there other ways of getting a list of images into gdal_merge without putting them all on the command line? == 10 8 11 9 Method 1, use `--optfile` … … 15 13 }}} 16 14 17 Method 2, use a batch file wrapper, see attached. 15 Method 2, use a batch file wrapper, see attached. (for windows) 18 16 17 == Create an RGB image by merging 3 different greyscale bands == 19 18 19 Conduct "merging by stacking" with the -separate flag. So if you had three greyscale files that cover the same area and you do: 20 {{{ 21 gdal_merge.py -separate 1.tif 2.tif 3.tif -o rgb.tif 22 }}} 23 24 This maps 1.tif to red, 2.tif to green and 3.tif to blue.