Questions tagged [gdal-merge]

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

Filter by
Sorted by
Tagged with
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 ...
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 ...
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 ...
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/...
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 ...
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
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
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
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
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 ...
0
votes
1answer
40 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
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 " +...
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 ...
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\...
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 ...
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
1answer
223 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
303 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
62 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 ...
4
votes
2answers
460 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 ...
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'...
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… ...
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 ...
0
votes
1answer
290 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
184 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 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
227 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....
0
votes
1answer
158 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
934 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 ...
0
votes
1answer
228 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 ...
3
votes
1answer
507 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 ...
1
vote
2answers
464 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 ...
1
vote
1answer
180 views

Merge artifacts and flow accumulation

I've been struggling with this problem for awhile. Here is a curvature raster to illustrate the problem http://i.imgur.com/IIjYAov.jpg I'm using 10m DEM rasters from the NRCS Data Gateway for a large ...
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
2answers
476 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
1answer
347 views

Overwrite the mosaic raster generated using gdal_merge.py?

Is it possible to overwrite the raster generated using gdal_merge.py? When I ran the command: % gdal_merge.py -init 255 -o out.tif in1.tif in2.tif it works fine, but if I ran the same command and ...
0
votes
0answers
184 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
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 \ --...
0
votes
1answer
242 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? ...
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 ...
1
vote
1answer
1k 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 ...
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? ...
1
vote
1answer
771 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 ...
1
vote
0answers
68 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 ...
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 ...
0
votes
0answers
643 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
3answers
536 views

gdal_merge_raster.py ; Names of huge number of input images

gdal_merge_raster.py I am trying to make a stack including huge number of images. I am just wondering whether there is a way to avoid writing all the input images names !!!!!! Thanks
1
vote
3answers
3k views

Can't get gdal_merge Python script to run

I downloaded and installed GDAL. I am using Python 27. I had to use the following commands at the IDLE Python GUI: from osgeo import gdal,ogr sys.path.append('C:\Program Files\GDAL') import ...
2
votes
1answer
339 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
258 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 ...