Questions tagged [gdal-merge]

A utility used to merge small image tiles to create a bigger image

Filter by
Sorted by
Tagged with
19
votes
4answers
8k views

How to efficiently access files with GDAL from an S3 bucket using VSIS3?

So, GDAL has recently added a new feature that allows random reading of S3 bucket files. I am looking to crop GDAL images from multiple tiles of an image without having to download the whole file. I'...
17
votes
3answers
13k views

What's the difference between gdalwarp and gdal_merge for mosaicing

I wanted to merge around 20 dem tiffs each around 100MB, and I used gdalwarp (I know about virtual file option): gdalwarp $(list_of_tiffs) merged.tiff However this command took very long time, and ...
10
votes
1answer
5k views

calling gdal_merge into python script

I am new to python and breaking my head on how to use gdal_merge in a (spyder) python script. I use Windows 10, Python 3.6 and have the gdal tool installed from osgeo4w. I realize many other posts ...
9
votes
3answers
15k views

How to add color interpretation for raster bands using GDAL?

I have 3 separate 1-band GeoTIFF files. The color interpretation for band is gray. I want a 3-band RGB file. I've used gdal_merge.py gdal_merge.py -separate file1.tif file2.tif file3.tif -o ...
8
votes
2answers
5k views

calling gdal_merge.py into another python script running GDAL processes

I want to use gdal_merge.py to merge a series of .tif files prior to clipping the merged file to a shapefile boundary, but want to do so as part of another larger script that will execute a number of ...
6
votes
1answer
620 views

Merging GeoTiffs with GDAL causes grid-like artifacts?

I'm processing ASTER DEM tiles, merging them into larger blocks (to minimize visible tile edges) and importing the contours into a postgis database. Workflow: gdal_merge.py -of GTiff -o merged.tif ...
6
votes
1answer
2k views

What are the differences between the photometric options for GDAL_merge?

I am using GDAL_merge to merge several geotiff tiles into one large tile. One of the creation options I can add is photometric. There are several options for this. MINISBLACK MINISWHITE RGB CMYK ...
6
votes
1answer
3k views

What is the correct way to merge adjoining raster images?

I am trying to create a raster base layer from NAIP ortho imagery. Unfortunately for me, the area of interest is very near the intersection of four image files. I have tried a few approaches to ...
6
votes
1answer
356 views

Creating empty space when merging multiple GEOTIFF files?

I have multiple GEOTIFF files containing information regarding atmospheric parameters. Due to a lack of data in certain regions, I've had to do my geospatial processing separately on them. Now I'd ...
5
votes
1answer
3k views

how to rename the band-names of a layer stack?

I created a layer stack of 20 images (all GTiff-files) using the gdal_merge tool in QGIS, available at: raster > miscellaneous > merge The result is a GTiff layer stack of the 20 images, but ...
5
votes
1answer
1k views

gdal_merge.py with single band raster

I'm trying to mosaic the True Marble world imagery 250M geotiffs using gdal_merge.py though one of them doesn't have RGB bands like the rest and gdal_merge fails (same number of bands is listed as a ...
5
votes
1answer
2k views

gdalbuildvrt vs gdal_merge on overlapping images

I once have used gdalbuildvrt on georeferenced images. That was okay when images did not overlap, It was also time efficient compared to gdal_merge or gdal_warp. Now I have overlapping images and ...
5
votes
1answer
3k views

Seeking way to tile/pyramid 4 million images using gdal for geoserver WMS?

My scenario consist of 4 million geolocated images each measuring 1536x1536 pixels in size. What is the most efficient way to pyramid these images? My end goal is to serve these images using ...
5
votes
1answer
953 views

Merge overlapping DEMs with irregular boundaries

I have a 10m DEM covering part of a state, a 20m DEM covering the whole state, and a 90m DEM covering the whole country. How can I merge them together, getting the best quality available in each area? ...
5
votes
0answers
289 views

When should I use gdal_merge.py?

When building a single georeferenced image from a collection of tiles, gdalbuildvrt followed by gdal_translate is much faster than gdal_merge.py. In my own measurements of gdal_merge.py \ --...
4
votes
1answer
1k views

Where is layer stacking from merge raster tool of qgis?

In the newest version of Qgis (2.18) there isn't layers stack option in order to merge raster bands. So tried to merge Landsat bands in only one file and I couldn't. What can I do to stack bands of ...
4
votes
1answer
2k views

Merging DEM rasters?

I've been struggling with this problem for awhile. Here is a curvature raster to illustrate the problem. I'm using 10m DEM rasters from the NRCS Data Gateway for a large portion of California. The ...
4
votes
1answer
630 views

Permission problems using GDAL

I know this kind of problem as been posted previously, but I can't solve my problem with the answers. I'm running a simple gdal_merge command, but I get shut down every time by permission problems. I'...
4
votes
2answers
627 views

GDAL_merge - Stacking Files - Nodata Value wrong

I masked a large raster stack by separating the stack in 18 chunks, masking each and writing each chunk to a file (due to memory problems). Then, I use gdal_merge to stack the 18 GTiff files. All ...
4
votes
1answer
5k views

How can I use GDAL Merge with multiple files in one folder in python 2.7?

I have multiple files in one folder which are called, for example: 049.h11v11.hdf, 049.h11v12.hadf, 049.h11v13.hdf, 065.h11v11.hdf, 065.h12v12.hdf, and so on. The first 3 numbers are the julian day of ...
4
votes
1answer
1k views

gdal_merge produces incomplete mosaic

I am using GDAL 1.91 on a Windows 7 machine. I have been mosaicing large numbers of rasters together and most of the time this process works exactly as expected. However a very few of my mosaics ...
4
votes
2answers
395 views

GDAL_Merge Creates Washed Out Image

I'm attempting to use gdal_merge to stitch together four JP2 aerial orthophotos. the merge is successful, but the resulting image has washed out color, as you can see here: All color in the four ...
3
votes
1answer
901 views

Merging Multiple JP2 image files on QGIS

I have about 150 Images that I need to merge together. I have tried to go about this by using the GDAL misc > merge tool but it is too much for QGIS to handle with even 20 images at a time. I was ...
3
votes
2answers
10k views

gdal_merge.py can't find libgdal.so.20

I am having some trouble with GDAL (v2.1-dev). I build it from source today using Poppler and OpenJPEG. All the command line utilities work fine, but none of the Python plugins work at all, ...
3
votes
2answers
784 views

How to control band order generation in GDAL Merge?

I am trying to merge a total of 8 GeoTiff files (each one representing a single band) into a single TIF file using Gdal Merge in QGIS. The tool works, but does not allow me to select the order that ...
3
votes
1answer
597 views

Creating RGB composite using GDAL: resampling?

I want to use gdal_merge.py for creating rgb composite from 3 bands with the same qualities (resolution, crs..), but here I found that gdal_merge.py is using nearest neighbor resampling method. Is ...
3
votes
1answer
518 views

Accessing band n of GeoTIFF using gdal_merge.py?

How does gdal_merge.py want input bands of a multiband tiff pathed via the --optfile option? I am merging a large list of .tifs via a subprocess.call in python: gdal_merge.py -o "target" --optfile "...
3
votes
1answer
649 views

gdal_merge.py with memory constrains

I export bunch of DEM files (10000x5000) from Photoscan and I need to combine them with gdal_merge.py but the problem is that it consumes all the memory availible and can't finish processing. What ...
3
votes
1answer
3k views

get rgb images from sentinel-2 using gdal

i have some troubles to get RGB true colors image from sentinel satellite bands wich produce this to me it looks not natural at all also i have tried gdal to do the merge with : gdal_merge -o ...
3
votes
2answers
400 views

pyqgis processing runalg release input in windows

I am having problems with deleting files on disk after using "processing.runalg()" in a plugin I created when running it in windows. I have no problem in linux. I found an issue regarding the same ...
3
votes
1answer
537 views

merge two tiles of Worldclim data with gdal_merge.py - Nodata

I am trying to merge two tiles of the worldclim data in geotiff format, which I want to subsequently work with in the raster package in R. When I use gdal's gdal_merge.py script: gdal_merge.py -v -o ...
3
votes
1answer
742 views

Raster merge leaves gap where one file has no data

So I gave up on using the Raster|Misc|Merge... command in QGIS because it always crashes. I tried using the merge tool from the GDAL/OGR Processing Toolbox instead. That runs OK, but it puts a gap ...
3
votes
1answer
217 views

Two versions of gdal_merge and two diffrent effects

Is there any possibility that two diffrent versions of gdal (1.7.3 and I believe 1.9.0) can give me two diffrent results with given: two RGB files.Each twith 3 layers - input1.png and input2.png ...
3
votes
0answers
47 views

gdal_merge runs indefinitely, crashes system, BSOD

I have two small rasters. Same resolution, SRID, type, format. When I use gdal_merge, the console keeps running the command ad infinitum. import time, os ot = "UInt16" of = "GTiff" nodata = "255" ...
3
votes
0answers
677 views

Gdal_merge doesn't work

I have gdal installed and (I though) working fine. I use a lot rasterio and sometimes gdal directly, but today I wanted to do a mosaic and I wanted to try gdal_merge.py, but when I try to launch the ...
3
votes
2answers
2k views

gdal_merge.py not found

I'm newbie with Linux and QGIS. I'm using Ubuntu 18.04 LTS and QGIS 3.0 Girona and I can't do mosaic from a raster pile because the following log error message returns: Processing algorithm… ...
2
votes
2answers
651 views

How to merge raster scenes while maintaining small file size?

I have 4 scenes of raster images that I need to merge. Average size of the scenes is only 60 MB, but the merged scene ended up at 6 GB in file size. Does anyone know why this happened?
2
votes
2answers
2k views

Merging GDAL tiles and crop via bounding box?

I am using GDAL. Assume I have four adjacent GDAL tiles in the formation of a square. I have a bounding box with a corner in each tile so that the rectangle formed spans all four tiles. My goal is to ...
2
votes
1answer
642 views

How to edit the metadata for individual bands of a multiband raster, preferably with GDAL?

I created a multiband raster using the gdal_merge.py utility where each band represents a measurement from a different year: gdal_merge.py -o stack.tif -ot float32 -separate -a_nodata -9999 DEM_2012....
2
votes
1answer
2k views

GDAL Merge Py on ubuntu many tif tiles into one

Trying to batch mosaic 1000 Gtiff rasters (all in one folder) into 1 tif file via gdal merge on linux ubuntu. Having trouble with the linux command to bring in all files in a folder into the output ...
2
votes
1answer
35 views

PyQGIS standalone script error message for gdal_merge: “Incorrect parameter value for INPUT”

In my standalone PyQGIS script I would like to merge two raster layer. "zero" and "raster". Both variables are definitly QgsRasterLayer objects. This is the function: def merge(self): zero = self....
2
votes
1answer
2k views

Using multiple tiff files as a data store in Geoserver

I have hundreds of tifs I want to use as a data store on my Geoserver. So many that QGIS won't merge them for me. I heard some about .vrt but I never found a clear source of information on the ...
2
votes
1answer
508 views

gdal_merge'd files take more space

I have two 3.6 MB GeoTIFF compressed with LZW. When I merge them with: gdal_merge.py *.tif -o ~/out.tif -co COMPRESS=LZW -co BIGTIFF=YES The files is 10x larger at 31 MB. Is there some reason the ...
2
votes
3answers
534 views

Patch over raster A with values from raster B where raster A values are nodata in GDAL

I'm trying to come up with a way to patch over raster A with data from raster B. Extent of raster A can be smaller than raster B. More specifically, I'd like to patch over nodata values from raster A ...
2
votes
1answer
636 views

What resampling method is used in gdal_merge?

I am using the gdal_merge python script to merge rasters that have slightly different, though similar, input resolutions. The documentation advertises that it can handle different resolutions, and in ...
2
votes
1answer
1k views

Combine two grids with a small area of overlapping pixels to a new raster in QGIS/SAGA

The first grid is 1 byte and the second is 2 byte. The new raster should have a blended transition. How can i do this?
2
votes
1answer
878 views

How to merge multiple geotiffs by the maximum value using gdal_merge.py?

I'm try to use the gdal_merge.py to generate a a big composite image considering the maximum value per pixel (to avoid the no data value). But I didn't find this option for gdal_merge.py. My code is:...
2
votes
2answers
1k views

Mosaic Imagery using GDAL Edited

I have a couple of large sets of imagery I need to mosaic using GDAL. The sets are currently in tiff format with 18 tiles totaling about 20gb in size. I have attempted to mosaic using both the ...
2
votes
2answers
3k views

mosaic rasters with gdal_merge.py

I want to mosaic 2 rasters "rasa" and "rasb" using gdal_merge.py . While running the code, it produces an error " No input files selected". Can somebody help me to find the error in the code? ...
2
votes
1answer
1k views

Keep NoData values when using gdal_merge

I'm using gdal_merge to join several BioClim rasters, which I will then feed into a Java program that "snaps" points to the nearest BioClim raster tile of non-NoData value. However, when I run ...