Questions tagged [gdal-merge]

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

Filter by
Sorted by
Tagged with
2
votes
1answer
53 views

Merging DEMs in QGIS?

Not the first problem I've had with DEMs in QGIS 3.4. Trying to merge 6 DEM tiles together into one. Process for this is simple: go to Raster --> Miscellaneous --> Merge. Once in the menu, select ...
0
votes
0answers
39 views

Joining file pair for batch gdal_merge.py

I am new to Python and I have been going through past questions and searching trying to determine best way to batch mosaic files. I have a list of .tifs that have been converted from .hdf files I am ...
0
votes
0answers
25 views

Odd Color Shift after Merging Rasters in QGIS

I have a large number of raster orthophotos that I'm trying to merge into a single image using QGIS. The merge completes but the color is significantly off afterwards, as shown here: This seems like ...
1
vote
0answers
35 views

Overlaying and exporting rasters in QGIS?

I have in QGIS a higher quality GeoTIFF overlayed on a larger, lower quality GeoTIFF. I reprojected one raster into the coordinate system of the other. How can I export these to a single GeoTIFF ...
1
vote
0answers
50 views

Error in Raster/Merge tool

I am completely new to QGIS. I am on a Mac using OS 10.13.6. I have installed QGIS 3.6, and installed Python 3.6.8 per install instructions. I opened a terminal window to check python install: ...
0
votes
1answer
42 views

Blown out TIFF image after merge in QGIS?

I'm attempting to merge four GeoTIFF images in QGIS for the first time and am getting unexpected results. Navigating to Raster --> Miscellaneous --> Merge..., I set up the merge as follows: Once the ...
1
vote
0answers
27 views

gdal_merge novalue

I managed to run gdal_merge for multiple geotiles (jpeg). I am using the following options: command = "gdal_merge.py -init 0 -a_nodata 0 -co COMPRESS=LZW -co BIGTIFF=YES -o "+out_bez+" -of gtiff " +...
0
votes
0answers
38 views

gdal_merge adds black borders

I'm using gdal_merge.py to merge a few GeoTIFF's into a GeoPackage. The source files are UTM33 projection, 3 bands (RGB) without Nodata tags. They make up a non-rectangular mosaic, so gdal_merge ...
0
votes
0answers
87 views

osgeo4mac QGIS 3.4.4 issues with gdal's merge

I'm trying to run the gdal mosaic tool from QGIS3 homebrew osgeo4mac, but when I run it I get this error: 2019-02-11T18:25:17 INFO gdal_merge.py -ot Float32 -of GTiff -o /private/var/folders/...
0
votes
1answer
297 views

Using GDAL to extract Corner Coordinates based on a jpg file's GPS EXIF data?

I have ~100 jpeg images taken by a Drone. I tried to use gdal_merge to merge them and create a big tile GeoTIFF image. gdal_merge spends lots of time, and in the end, it just put each jpeg image ...
0
votes
0answers
389 views

Error while creating large TIFF with gdal_merge

I need to merge two TIFFs into one, but the output is larger than 4 GB. So, it needs to be a BigTIFF. But the "BIGTIFF=YES" creation option seems to be ignored. Here's the error: $ gdal_merge.py -...
1
vote
1answer
75 views

Why isn't merge in QGIS working for me?

I am attempting to merge 153 geotifs into one large geotif of the Portland area. This is what my rasters looked like before the merge: Here is a zoomed in image: This is what the raster looks like ...
1
vote
0answers
202 views

gdal_merge.py not executing

When I type gdal_merge.py into Terminal, the output is -bash: gdal_merge.py: command not found. I installed 3.4.0 Madeira [from this link] for macOS 10.13 (https://www.qgis.org/en/site/forusers/...
1
vote
0answers
124 views

Keeping band names with gdal_merge.py?

I am using gdal_merge.py to merge different mosaic rasters each contains 20 bands with different names. However, when using gdal_merge.py the bands are renamed as band1, band2, ..., band20. How can I ...
0
votes
1answer
350 views

Using gdalwarp to merge bands into a mosaic created by gdal_merge?

I have created a mosaic with gdal_merge.py using the following command: gdal_merge.py -createonly -separate -co PHOTOMETRIC=RGB -o merged.tif LE07_L1TP_046030_20180810_20180810_01_RT_b3.tif ...
1
vote
1answer
218 views

Georeferencing metadata in GeoTIFF files

I am generating maps as TIFFs using the raster package (writeRaster) in R to generate small tiles, then as a final step, combining the tiles via the GDAL script gdal_merge.py. I thought the resulting ...
1
vote
1answer
206 views

Unable to use gdal_merge.py from Python Script

If I execute this script in windows with x86 Python, works just fine. Also from command line directly. import os, subprocess gm = os.path.join('C:\\', 'Program Files (x86)', 'GDAL', 'gdal_merge.py') ...
1
vote
1answer
295 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....
1
vote
1answer
375 views

How to display a bright and realistic GeoTIFF using GDAL?

I am using GDAL (gdal_merge) to put together some landsat photos using the proper bands. When I open the GeoTIFF that is created using gdal_merge (in Windows), the GeoTIFF is super dark. Now, when I ...
1
vote
1answer
54 views

Corruption of export using Merge feature in QGIS 3

Using QGIS 3.2.0 - Bonn I'm getting a nasty corruption when trying to use the Merge feature to pull together a selection of .map (OziExplorer) files and merge into a single .bmp file. They load in ...
0
votes
1answer
167 views

How to mosaic two tif data by gdal_merge [closed]

my method is as follows(Some paths have been omitted.) enter code here gdal_merge.py F:\test_data\LC81210402013278LGN00_B1.TIF F:\test_data\LC81220402013285LGN00_B1.TIF -o F:\mo529.tif but failed,...
0
votes
1answer
1k views

Raster mosaic error: Format driver GMT does not support creation and piecewise writing

I am novice in using QGIS and other GIS software and am trying to create mosaics of NOAA raster nautical charts. Using pulldown menus, I entered raster>misc>merge and chose two NOAA charts and then ...
3
votes
1answer
907 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… ...
0
votes
1answer
271 views

JPEG compressed Geotiff files convert to JPEG without loss

I am new to GIS application and had just started working with Geotiff files. Background: Currently, I am provided with big Geotiff files around 200 MB - 500 MB each as raw data from my vendors. Are ...
2
votes
0answers
216 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
2answers
523 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 ...
0
votes
0answers
203 views

gdal_merge: ERROR 1: Attempt to create 590x-369 dataset is illegal,sizes must be larger than zero

I am attempting to merge 600+ .tif files using gdal_merge.py (GDAL 2.2.2, released 2017/09/15) but I'm getting this error: ERROR 1: Attempt to create 590x-369 dataset is illegal,sizes must be ...
5
votes
0answers
271 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 \ --...
0
votes
1answer
257 views

gdal_vrtmerge.py vs. gdalbuildvrt

In the gdalbuildvrt documentation, I read This utility is somehow equivalent to the gdal_vrtmerge.py utility [...] So what is the difference (if any) between gdalbuildvrt and gdal_vrtmerge.py? ...
1
vote
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 ...
1
vote
0answers
72 views

GMT instead GTiff while merging rasters: error message [duplicate]

My question is linked to that post (Saving an output file during merging on QGIS) as I have exactly the same issue but as the guy couldn't provide screenshots and the post is unachieved, I ask again ...
0
votes
0answers
726 views

How to fix positive North-South Pixel size in GeoTIFF with GDAL

I have issues with some GeoTIFF raster files with positive NS resolution (North-South) gdalinfo gave me this: Pixel Size = (1.000000000000000,1.000000000000000) I run into all kind of problem with ...
1
vote
2answers
524 views

Merge tiffs into a single multi banded tiff

I have two geoTIFFS. The files cover the exact same area, both have 1 band(Block = 256x256) and both have a no data value of 0. They also have the same coordinate system. I want to merge the files ...
2
votes
1answer
368 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 ...
0
votes
1answer
282 views

gdal_merge.py just copies first input image

I am working with Sentinel-2 data, which I want to collect for a ROI that unfortunately is covered by two different (neighboring) granules. After downloading the granules, I cut them and convert them ...
2
votes
1answer
750 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:...
3
votes
1answer
546 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
734 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 ...
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 ...
2
votes
2answers
514 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?
6
votes
1answer
320 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 ...
3
votes
1answer
498 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 ...
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 ...
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 ...
2
votes
1answer
532 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
823 views

Nonstandard GDAL and BIGTIFF: Is there a hidden flag / env variable?

I'm having some trouble with GDAL and BIGTIFF support. I work on a multi user cluster, and the defaults for GDAL are 1.9.2 there. I've built GDAL 2.1.3, libtiff, libgeotiff, and proj4, making sure ...
3
votes
2answers
363 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 ...
4
votes
2answers
334 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 ...
4
votes
1answer
422 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'...
1
vote
1answer
329 views

What is the order of raster after stacking them?

When I merge a lot of raster files I don't know what is the order that they forward in the new file (stacking). How do I know the name of band 1 (and others ones) in the other file that I have had ...