Questions tagged [gdalbuildvrt]

The GDAL command to build a VRT (Virtual Dataset).

Filter by
Sorted by
Tagged with
2
votes
3answers
2k 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
1answer
908 views

Reading Gdal VRT format

How can I read a gdal vrt file with GDALOpen function? I have a vrt file built with gdalbuildvrt and I want to read it using GDALOpen but It returns a null dataset, Is it even possible? In this code ...
6
votes
3answers
1k views

How Does QGIS Read 'nodata' in 3 Band Raster Data?

I have 3 band GeoTiffs of aerial imagery. The imagery is byte data with values of 0-255 on each band. A 'nodata' value has not been assigned on any band. I am assembling these images using a VRT, ...
2
votes
1answer
745 views

Unable to export GeoTIFF file with different datatypes per different bands

Already read Merge Multi-Band Geotiff with different datatypes (with gdal) but can't apply that solution so please do not flag as duplicate. I have near 3.000 geotiff files that I need to merge into ...
2
votes
0answers
252 views

Saving VRT file crashes QGIS

When I load a .vrt file, the image comes in with a black and blue tint usually or is some other weird color. If I zoom in at all QGIS crashes and creates a minidump in my program folder. Also, when I ...
7
votes
1answer
2k 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 ...
1
vote
0answers
2k views

Create VRT from TIFFs with different projections

Basically, I have a bunch of different TIFF files, each with their own projection (I think). I want to eventually mosaic and tile them all. But before I tile them I have to combine all the TIFFs in a ...
0
votes
0answers
411 views

Running a line from a terminal for QGIS [duplicate]

I am trying to run this code: # create virtual multi-band raster gdalbuildvrt -separate rgb.vrt red.tif green.tif blue.tif # write multi-band raster into geotiff gdal_translate -of GTiff -co ...
3
votes
3answers
2k views

ERROR 1: Failed to write .vrt file in FlushCache()

I'm trying to build .vrt from georeferenced DEM files from Photoscan. gdalbuildvrt global_dem.vrt dem*.tif It was working on Ubuntu 12.04(GDAL 1.10.0, released 2013/04/24), but now it fails on ...
2
votes
1answer
2k views

Export VRT to GeoTIFF in Python

I'm trying to export a Virtual raster (VRT) to GeoTIFF in Python 2.7 (Windows 10 System), but code runs with some problems. When i try export the following image (.vrt file) to GeoTIFF i had a ...
2
votes
1answer
2k views

Filling nodata value gdal.BuildVRT

I'm trying to mosaic several rasters with gdal.BuildVRT in Python 2.7 (Windows system), but code runs with logical problems. When I try to merge 3 Landsat images datasets, resulting image is a tile (...
3
votes
2answers
194 views

Can you create a virtual vector from zipped Ordnance Survey Open Names?

Ordnance Survey Open Names data comes as a zipped directory containing header-less CSVs for each 10km OS Grid square. The headers are in another, one line CSV. The data contains various attributes and ...
2
votes
1answer
6k views

Saving VRT as raster?

I have made a VRT out of a few different single band rasters. I've played around with it in QGIS and it's great and I can do a save as and it'll become a real raster. To do further processing in the ...
1
vote
1answer
1k views

gdalwarp causes ERROR 6: PNG driver doesn't support 6 bands in gdal2tiles

I've a problem with my gdalwarp function. What I've done: I built a .vrt file from 6 .tif images: gdalbuildvrt -overwrite /input/base.vrt /home/tiles/BASE/*.tif My gdalinfo looks like that: ...
1
vote
0answers
140 views

GDAL concatenating vrts

I'd like to concatenate a few vrts together. So i have three vrts representing data from different years and to make my life easier would like just to have one vrt created from the three vrts. Each ...
2
votes
1answer
2k views

Use gdalbuildvrt then gdal_translate changes Corner Coordinates

when I use: gdalwarp -dstalpha -multi -t_srs epsg:900913 b172.tif b282.tif b770.tif b771.tif b772.tif b832.tif w_25k.tif I can get one merged tif then go through gdal2tiles for tiling But if I use ...
2
votes
0answers
945 views

Multiband virtual raster with gdalbuildvrt: Control how bands are sorted

I am making a multiband virtual raster using gdalbuildvrt. Everything works fine, but a little detail remains annoying: I cannot control how the bands are sorted. I specified the input raster using ...
3
votes
0answers
262 views

GDAL VRT - gap artifact in output

I have created a VRT using gdalbuildvrt from three single-band GeoTiffs (1-m resolution) as follows: gdalbuildvrt chm_2157.vrt P_712806_CHM.tif P_712808_CHM.tif P_712810_CHM.tif -a_srs 'epsg:2157' -...
1
vote
1answer
797 views

Create VRT from shapefile using a where clause

I am wondering if there is a way to create a .vrt using a shapefile, but specifying attributes through a where clause. I have made a .vrt from a sub section shapefile (pre selected the tiles and ...
5
votes
1answer
367 views

OS terrain 50: .vrt from zip files [closed]

I tried to follow what was suggested in How to use OS Terrain 50 in QGIS, but I got the following problem: in spite of being generally able to generate .vrt files using gdalbuildvrt from unzipped ....
1
vote
0answers
167 views

Changing pixel values of GDAL VRT

Is it possible to manipulate the pixel values of a GDAL VRT and, if so, how? The original data must remain unchanged. I have a dataset which might be a bit rotated so that there are no data values on ...
0
votes
1answer
320 views

Raster extents incorrect for vrt when changing projection with -a_srs flag

I want to generate a .vrt in epsg:3857 from a series of raster tiles in epsg:4326, and am trying to do so in one step using gdalbuildvrt with the -a_srs flag: gdalbuildvrt -a_srs epsg:3857 ortho_3857....
1
vote
0answers
141 views

How to dynamically change the draw-order of geotiff rasters in QGIS?

In ArcGIS it is possible, via raster mosaics, to choose the raster order depending on various methods. One such method is the center method. The raster that is closest to the coordinate of the center ...
2
votes
1answer
789 views

Where vrt files store the location of the tiles

I have thousand of tif tiles and a vrt file, generated by using gdalbuildvrt. At the moment they are at the same folder level in the system, but if I open the vrt file with Notepad I cannot find any ...
3
votes
0answers
2k views

How to build .vrt of shapefiles?

I've a huge number of shapefiles and I would like to create a VRT as I do with gdalbuilvrt for raster. I find here https://github.com/dwtkns/gdal-cheat-sheet that it should be possible and the format ...
12
votes
1answer
1k views

Can I preserve a fading alpha layer when mosaicing images with gdal?

I am mosaicing some images with gdal and would like to improve the final result by using a fading / gradual alpha layer towards the edge of each image to remove the sharp edges in the middle of the ...
4
votes
1answer
2k views

mosaicing geotiffs with gdal creates gaps due to alpha layers

I have a series of geotiffs which I'm trying to mosaic together, however when they are combined their individual alpha layers overlap sections of the other images and create gaps in the final mosaic: ...
3
votes
1answer
779 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 ...
6
votes
1answer
718 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 ...
1
vote
1answer
401 views

Shifting image in a vrt

I have a set of geotif images that I want shifted by an integer number of pixels in X and Y. However, those images are quite large, so I don't want to duplicate them (and I need to keep the original ...
12
votes
1answer
6k views

Why result of merge of multiple raster is so big? [closed]

I try to merge 14 geotiff like this : Each geotiff is about 50Mb. I need a geotiff at the output My workflow : gdalbuildvrt -input_file_list list.txt test.vrt (where my list contains the name of ...
1
vote
0answers
400 views

Importing multiple GeoTiffs in TileMill

I am a software engineer that is very new in the geo world. So excuse my ignorance if this question seems simple or if terms I use are totally wrong. Problem: I have been tasked with taking multiple ...
6
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 ...
1
vote
0answers
249 views

How to prevent transparent borders (collars) of a tif wipe out overlapping regions of adjecent tif while using gdalbuildvrt

I have a set of Geotifs that have got transparent borders (collars) of irregular shapes & dimensions around them. First I created a VRT over this set of Geotifs through gdalbuildvrt. Then I ...
1
vote
0answers
50 views

Problem defining the tiling starting point

We are tiling a image datasets. However, we want to specifically define custom windows. To do this, we are using -te option during warping. The warped output is then tiled. The problem though is that ...
1
vote
1answer
1k views

How do I set nodata with custom color for gdal_translate and gdal2tilespy?

I start with a bunch of 1-bit geotiff files that I had to convert to 8-bit RGB tiff files to use with GDAL. Then I tried to set borders to red (content is in black and white so I can't use those) and ...
3
votes
1answer
2k views

gdal_translate producing tif with different colors as original

I am using ArcSDE as my raster data source with the ultimate goal to tile this dataset: I am running the following gdal_translate command to generate the initial VRT: gdal_translate -projwin ...
1
vote
0answers
729 views

How do I load offline google map/earth vrt files as a backdrop in qgis

I was trying to follow the process : saving-google-earth-location in order to cache google maps/earth offline for digitizing, but I am fairly new to qgis. When I try to add the vrt file as a raster ...
5
votes
1answer
1k views

gdal2tiles.py problem - creating mini tiles

I have a similar problem to the issue posted here (gdal2tiles problem). I have 80 GeoTIFFs (4000x4000) with EPSG:27700 projection embedded and TFW and PRJ files. These I have built into a virtual ...
1
vote
2answers
2k views

Some tiff not included on a vrt index

I have some tiff files and I'm trying to generate a vrt index with gdal tool, gdalbuildvrt. I run this command: gdalbuildvrt orto_index.vrt -srcnodata "0 0 0" -vrtnodata "0 0 0" *.tif and throws ...
17
votes
3answers
11k views

Python equivalent of gdalbuildvrt

Is there a way to perform the same task as the gdalbuildvrt utility using GDAL Python bindings? So far I have not found any way to do this other than creating a vrt of a single dataset and manually ...
1
vote
0answers
847 views

`gdalbuildvrt` and selecting individual bands

I want to produce a set of VRTs (GDAL's internal virtual rasters) that comprise a re-arrangement of bands of a number of individual GeoTIFF files. Say I have my initial set of GeTIFF files, all having ...
2
votes
1answer
2k views

gdal2tiles problem

Im using the following to try to produce a tms tileset: gdalbuildvrt test.vrt *.tif gdal2tiles -p raster --zoom=0-6 test.vrt out Two tifs work fine, more than that and it seems to miscompute the ...

1
2