Questions tagged [gdal-merge]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
7 views

Custom function for mosaic seams in Python GDAL

I was wondering if there is a way to implement a custom function for creating seams between the rasters that create a mosaic. More specifically, if I create a mosaic with gdal_merge or gdalwarp, the ...
0
votes
0answers
22 views

QGIS Merge tool in Python with glob

I am testing this code, which I have been fixing: import os import sys from glob import glob from qgis.core import QgsProcessing from qgis.core import QgsProcessingAlgorithm from qgis.core import ...
0
votes
0answers
5 views

gdal_merge with python for PDS4 does not generate xml

When I use gdal_merge to merge two LOLA PDS3 DEMs* into a PDS4 DEM, I do not get a PDS4 xml file. It creates the img file just fine but it does not create the xml file. I am using Python 3.7.6 in ...
-1
votes
1answer
114 views

Exporting large rasters in Google Earth Engine

When exporting large raster data in Google Earth Engine to your Google Drive, is there a function that prevents the export from automatically tiling into smaller files, or even decreases the number of ...
2
votes
1answer
53 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....
0
votes
0answers
17 views

Trying to merge TIFF raster layers results in invalid layer error

I've created these rasters in Python with numpy arrays and georeferenced them using .points files, no clue why. The error is shown in the screenshot. Edit: All standard settings were used. ...
0
votes
0answers
10 views

Merged rasters result in extended extent

I'm trying to merge some DEMs using the gdal_merge but the result is not what I think it should be. This is the lower limit of one of my original rasters: And the result after merging is: None of ...
1
vote
0answers
26 views

Merging two pyramid tile sets (directory)?

I was searching on the Internet about the merging of GeoTIFF tiles (pyramid tiles) generated by gdal2tiles. Below are the steps I performed Downloaded tif-files. Converted tif to vrt (below command) ...
0
votes
0answers
11 views

Reducing the number of mosaic elements using gdal_merge

I have 4 thousand mosaic elements. So i would like to reduce their count. (for example to 1 thousand, merge every 4 elements) How can i do this? gdal_merge give me one big raster
0
votes
0answers
13 views

Merging 2 non- touching DTM's using QGIS

Is there a way to merge 2 non- overlapping DTM's without using any form of interpolation? I would like the surface to run straight from one edge to the other without QGIS/GDAL attempting to ...
1
vote
1answer
252 views

'gdal_merge' is not recognized as an internal or external command, operable program or batch file in OSGeo4w Shell

I am trying to batch mosaic a set of rasters using gdal in OSGeo4w shell command line. When I try to use gdal_merge I am getting error as below. run o-help for a list of available commands ...
3
votes
0answers
50 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"...
0
votes
1answer
147 views

Composite bands Sentinel-2

I'm working with Sentinel-2 satellite and i'm working with 2,3,4,8 bands. I have to make composite mergining bands. I download images from https://scihub.copernicus.eu/. I used gdal_merge in console ...
1
vote
0answers
56 views

GDAL merge problem in Python code

I am getting the error while I am trying to stack individual raster bands into one image. ValueError: expected array of dim 2 import os from osgeo import gdal import numpy as np os.chdir(r'C:\...
1
vote
0answers
32 views

Merge raster tiles with different resolution and keep original resolution using Python

Problem I have two raster images with different size and resolution, which are overlapping and which I'd like to merge. The smaller image has a higher resolution which I want to merge into the larger ...
1
vote
2answers
378 views

Merging .tif files downloaded from Google Earth Engine in correct order in Python

When you download a large image from Google Earth Engine, it is in multiple small images. Each sub-image name contains the x_min and y_min coordinates of that image. It is described here - https://...
2
votes
1answer
159 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
36 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
44 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
216 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
70 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
31 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
163 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
551 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 ...
1
vote
0answers
888 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
121 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
297 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
212 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
719 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
444 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
350 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') ...
3
votes
1answer
725 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
1k 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
71 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
173 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
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… ...
0
votes
1answer
389 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
327 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 ...
3
votes
2answers
845 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 ...
1
vote
0answers
384 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
298 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
321 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? ...
3
votes
1answer
3k 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
84 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
2answers
1k 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
926 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
542 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
422 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
911 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:...