Questions tagged [gdalbuildvrt]

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

Filter by
Sorted by
Tagged with
1
vote
0answers
12 views

Multiband GeoTIFF loading slow in browser

Here's the problem: http://www.doctorharapos.com/webMap/geotiff.html My GeoTIFF files are light, just 4MB My process: starting from an ASCII Esri file I transform it to GeoTIFF using gdalwarp, ...
0
votes
0answers
19 views

Setting tiles as relative to VRT in R gdalUtils

I'm using VRT files to mosaic many separated tiles over my study region. I'd like to set an additional argument in gdalbuildvrt function from gdalUtils R package. This additional argument is used to ...
1
vote
0answers
85 views

Merging multiple QgsRasterLayer objects to create virtual raster (.vrt file) using gdal

I am creating multiple QgsRasterLayer objects in pyqgis and I need to merge them into a virtual raster .vrt file which will eventually be loaded as a layer in QGIS. The QgsRasterLayer objects are ...
1
vote
1answer
45 views

GDAL C# Bindings for VRT don't write a VRT file

I have previously asked this question on stack overflow, and am now asking this more specialized audience. I'm wondering why the GDAL C# library (v2.3.3) call to Gdal.wrapper_GDALBuildVRT_names(...) ...
2
votes
1answer
64 views

sampling error using gdalwarp on a subsetted VRT?

I am currently trying to prepare an SRTM subset including height conversion from EGM96 to WGS84 using gdalwarp. I encountered some strange shifts in part of the image. Here is a reproducible example: ...
0
votes
0answers
103 views

gdal2tiles (or some steps before) produces erroneous tiles from a mosaic TIFF

I have for some days now tried to create a image pyramid from a set of around 1400 TIFF files with no luck. I can't get my head around what is the cause of the problem. I will try to explain as good ...
0
votes
2answers
154 views

Gdal.BuildVRT not creating any output

I am trying to create a mosaic of all the images in file_list, Using: > vrt_options = gdal.BuildVRTOptions(resampleAlg='cubic', addAlpha=True) > gdal.BuildVRT('C:\\my.vrt', file_list, ...
0
votes
2answers
180 views

How to construct dataset in memory that is built from CSV and VRT file?

I'm using GDAL .Net wrapper, GDAL.Net. I have a list of scattered points ( in X,Y,Z coordinates) that I would like to rasterized via the function GDAL_GRID( or via the underlying .Net wrapper, Gdal....
0
votes
0answers
146 views

gdal: create a tile index or VRT from a folder of downloaded map tiles

I need to use GDAL tools to either create a tile index or create a VRT from a folder full of map tiles. The folder is in the format: <zoom_level> | |-- <row_number> | ...
1
vote
1answer
782 views

“gdalbuildvrt command not found” in Build Virtual Raster tool

I am trying to use the "Build Virtual Raster" tool in QGIS 3 to build a mosaic. When I run the tool, I get the following message: GDAL command output: /bin/sh: gdalbuildvrt: command not found ...
4
votes
1answer
497 views

Virtual Raster Mosaic - gdalbuildvrt - data gaps

I'm trying to create a virtual mosaic of several raster images (.tif) in R using the function "gdalbuildvrt" from the "gdal" package. The raster images are flight lines from a drone flight over a ...
2
votes
1answer
763 views

Using python gdal.BuildVRTOptions()

I want to define no data values when working with gdal.BuildVRT(). According to the gdal.documentation http://gdal.org/python/osgeo.gdal-module.html, by creating a gdal.BuildVRTOptions (srcNodata=-99, ...
3
votes
1answer
164 views

Set georeferenced extents of VRT file when calling GDALBuildVRT

I'm using Jupyter Notebook and gdalbuildvrt to write a program that loads hundreds of rasters. I want to set an area of interest, and only keep rasters (or portions of rasters) that fall in this area. ...
0
votes
1answer
321 views

Using gdalbuildvrt in R gives Warning Message … had status 1?

I want to make a mosaic out of several raster files that are next to each other, all including 4 bands. Due to saving space on the server I need to build a vrt and want to write the code in R, so I ...
5
votes
0answers
270 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? ...
0
votes
1answer
212 views

C++ GDAL API: Add more than one rasters to VRT

I want to add more than one tiff file into a vrt file, Well Based on GDAL documentations it is possible to create a vrt using this code GDALDriver *poDriver = (GDALDriver *) GDALGetDriverByName( "VRT"...
3
votes
3answers
3k views

Trying to run GDALbuildVRT in command line

I have a directory of OS data stored as tiff files (approximately 2000), which I want to create a virtual raster with. I understand that you can run this in the QGIS UI but because of the large number ...
1
vote
1answer
226 views

QGIS Python Programming Error - Build Virtual Raster (.vrt file) - Error : Unable to execute algorithm Wrong parameter value : [closed]

I am reading a single row from a text file createvrt_row0.txt. The row is : E:/Sreeraj/Task Global Data CONVERSION/Split/1 deg tiles_Global agri_data/N31E2.tif;E:/Sreeraj/Task Global Data CONVERSION/...
0
votes
0answers
724 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
513 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 ...
5
votes
3answers
704 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
303 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
181 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 ...
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 ...
1
vote
0answers
1k 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
209 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 ...
1
vote
3answers
1k 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
853 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
909 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
137 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 ...
0
votes
1answer
2k 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
429 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
122 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
1k 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 ...
1
vote
0answers
609 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 ...
2
votes
0answers
173 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
576 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
238 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
142 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
195 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
106 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
455 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
1k 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
886 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 ...
3
votes
1answer
1k 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: ...
1
vote
1answer
470 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
588 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
266 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 ...
10
votes
1answer
4k 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 ...