Questions tagged [gdal-merge]

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

29 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
0answers
255 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 \ --...
3
votes
0answers
461 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
788 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
0answers
197 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
505 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
0answers
33 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
38 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: ...
1
vote
0answers
22 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 " +...
1
vote
0answers
182 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
101 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 ...
1
vote
1answer
179 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
53 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 ...
1
vote
0answers
530 views

Patch processing of multiple HDF5 files using Python and Gdal (gdalwarp)

I am trying to extend this process http://geoinformaticstutorial.blogspot.com/2014/06/reading-and-map-projecting-amsr-2-data.html wherein a set of raster data with separate geolocation arrays are ...
1
vote
0answers
184 views

Multiple HDF5 files in single GDAL virtual raster

Does anyone know how to generate a single GDAL virtual raster linking multiple HDF5 files to each other? Each file represents different swaths of the globe with different lat/lon coordinates and data ...
1
vote
0answers
356 views

gdal_merge.py is not working with NODATA values

I am trying to merge a couple of GeoTiff files with gdal_merge.py. Example input: In the input data the nodata value is -32678. Hence I tried: gdal_merge.py -n -32678 -o DEM.tif -of GTiff na_DEM....
1
vote
0answers
131 views

gdal_merge was unexpected at this time

I am using gdal_merge to create an raster from around 250 files (rasters). when I run the command i got gdal_merge was unexpected at this time The command is correct as if I split the files it works ...
1
vote
0answers
349 views

gdal_merge shifts rasters after processing, layer stack is slightly off

I have experienced that gdal shifts rasters. The outputs of gdal_warp are often skewed, have different pixel sizes and so forth. A known error which has also been discussed here. But now, I had to ...
1
vote
0answers
225 views

Serving GeoTIFFs of different resolutions as single layer

I'm trying to serve a 30 arc second DEM with global coverage combined with high resolution 1/3 arc second DEM for a very small area. I believed at first I could combine them into a single file, ...
1
vote
0answers
383 views

Using gdal_merge to merge a large amount of files (in pairs)

I'm new to python and how it can be applied to gis. I have a large amount of MODIS files to go through and I've already extracted, reprojected and converted to GTiff the bands that I need from each ...
1
vote
1answer
449 views

gdal_merge tries to create image with negative dimensions

I am trying to use gdal_merge.py to create a mosaic from a set of geotiffs, however the command fails with the error message: "ERROR 1: Attempt to create -3510x1817 dataset is illegal,sizes must be ...
1
vote
0answers
407 views

Unexpected gdal_merge result

What I'm trying to do is to merge to geotif files with gdal_merge, but the result is not what I expected. Here are the files I'm trying to merge. gdal_merge.py -n 0 -a_nodata 0 -o result.tif file1....
0
votes
0answers
21 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 ...
0
votes
0answers
31 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
78 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
0answers
302 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 -...
0
votes
0answers
183 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 ...
0
votes
0answers
641 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 ...
0
votes
0answers
192 views

gdal_merge.py aligns incorrectly at the seam of two GeoTiffs

I am trying to merge four GeoTiffs from the National Elevation Dataset (EPSG: 4269) into a 2x2 DEM using gdal_merge.py. For some reason, when it merges the upper two NED rasters, gdal produces a seam ...