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

learn more… | top users | synonyms

6
votes
1answer
1k 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 ...
5
votes
1answer
383 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 ...
5
votes
1answer
1k views

Why the result of a merge of multiple raster is so big?

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 ...
5
votes
0answers
159 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
0answers
60 views

OS terrain 50: .vrt from zip files

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 ...
3
votes
1answer
515 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 ...
2
votes
1answer
980 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 ...
2
votes
1answer
563 views

gdal_translate produces tif with different colors as original

I am using SDE 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 390605 ...
2
votes
1answer
1k views

Most efficient 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
1answer
124 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 ...
1
vote
1answer
60 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 ...
1
vote
1answer
275 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
36 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 ...
1
vote
1answer
368 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 ...
1
vote
2answers
380 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 ...
1
vote
0answers
45 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 ...
1
vote
0answers
32 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 ...
1
vote
0answers
247 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 ...
1
vote
0answers
136 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
37 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
0answers
456 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 ...
1
vote
0answers
240 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 ...
0
votes
1answer
50 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 ...
0
votes
0answers
121 views

Tile generation (gdal2tiles): 'merge' old and new (overlapping nodata) tiles?

I have a task that can be done by brute force - if a specific map region has changed at a given scale, upload new geoTIFF at that scale, then rebuild the tile pyramid for that scale. (I don't create ...
0
votes
0answers
142 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 ...
0
votes
0answers
116 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
0answers
201 views

VRT vs KML superoverlay

We've got GB's of raster data that I want to make available as mosaics with overviews internally within my office. We have people using ArcGIS (although we are never all at the same version) and we ...