Questions tagged [gdal-merge]

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

Filter by
Sorted by
Tagged with
15
votes
4answers
6k 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'...
14
votes
3answers
12k 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 ...
9
votes
3answers
13k 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 ...
9
votes
1answer
3k 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 ...
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
573 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 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
295 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
2k 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
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
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 ...
5
votes
1answer
894 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
256 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
1k 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 ...
4
votes
1answer
385 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
462 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
4k 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
315 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
697 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
1answer
477 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
469 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
2answers
8k 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
1answer
446 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
2k 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
1answer
499 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
510 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
2answers
357 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
214 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
462 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
1answer
789 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
476 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
1k 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
340 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
2answers
406 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
510 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
2answers
478 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 ...
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
716 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
2k 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
924 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 ...
2
votes
0answers
198 views

GDAL merge of DEM data resulting in large black tiles, elevation min/max problem?

I am new to QGIS (former Arc user) and having trouble with the raster merge tool. I am merging 7 tiles of SRTM arc 1 data to cover a province in eastern Ecuador. Data is resulting in large areas of ...
2
votes
0answers
72 views

GDAL merge; Why add 0.1?

In the implementation of gdal_merge: https://svn.osgeo.org/gdal/trunk/gdal/swig/python/scripts/gdal_merge.py a value of 0.1 is added to the conversion from geo-referenced coordinates to pixel ...
2
votes
1answer
506 views

gdal_merge.py cannot import gdal in Windows 7 Anaconda GDAL Installation

I have an installation of GDAL through Anaconda that is mostly working, but it throws an ImportError whenever I run gdal_merge.py: Traceback (most recent call last): File "C:\Users\xxx\AppData\...
1
vote
1answer
890 views

How to batch merge rasters using FOSSGIS tools?

I'm working with QGIS 1.8 (gdal 1.9.2) and GRASS 6.4.3...but on Windows 7. I "just" want to merge my raster. I've got a folder with 50 GTiff raster from Lidar data. The aim is to merge raster ...
1
vote
1answer
1k 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 ...