Questions tagged [vrt]

GDAL Virtual Dataset (XML based)

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

Python - gdal.Grid() correct use

Is there any good, complete API for the GDAL Python bindings? I am interpolating and rasterizing points with elevation data using the gdal.Grid() method; output = gdal.Grid('outcome.tif','newpoints....
3
votes
2answers
2k views

How to convert CSV file in VRT

I use the gdal executable in QGIS file, with a DOS command. I have a csv file like this (test.csv) : X Y -5.48 42.81 -4.78 42.52 -5.06 42.02 This coordinates are GCP. I would like to ...
3
votes
2answers
1k views

Tiling from complex, multi-step GDAL VRT?

I've got 1002 ~100 MB (5000'x5000') .tif files in a state plane (transverse merc) projection comprising a county-wide, 1-ft aerial dataset. After two days, gdal_merge.py is only at 93 of 1002. And ...
2
votes
2answers
2k views

Having problems creating VRT in QGIS from png files

This is similar to a question asked by someone else, re OS tiles, however, there is a difference! I am a bit of a amateur in GIS and python, but if I take it slow I can usually just about work it out! ...
1
vote
1answer
1k views

Defining layer style for KML layer within OGR Virtual Format?

I have the following OGR virtual format data source, which includes a few GeoJSON files and one KML file: <OGRVRTDataSource> <OGRVRTUnionLayer name="union"> <GeometryType>...
9
votes
1answer
1k views

Overviews: to tiles or .vrt, or both?

When using vrt to mosaic on the fly large collections of images, is it better to add overviews (pyramids) to the individual rasters or to the final .vrt, or both? (Where "better" means finding the ...
7
votes
1answer
887 views

Gdal won't read geotiff in parallel, but will read it in serial, and will read virtual raster in parallel. Why?

My algorithm takes a global dataset at 30m resolution, breaks it up into pieces, analyzes the pieces somehow, and writes the analyzed piece to disk. As all the pieces are independent, this is ...
5
votes
2answers
734 views

GDAL (or other open-source) equivalent of Arc's Point To Raster Tool

I'm trying to convert a python script that relies on arcpy into one that only relies on open source modules, but I'm having some trouble. The bulk of my processing lies in one Arc tool "Point to ...
1
vote
2answers
1k 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 ...
5
votes
1answer
263 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 ....
4
votes
2answers
749 views

GDAL grid produces NoData

I have a series of text files that represent X,Y,Z elevation data. I'm trying to use the GDAL grid command line tool to convert these text files to raster GeoTIFs. My files are space delimited and so ...
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 ...
2
votes
1answer
511 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 ...
2
votes
1answer
2k 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
1answer
1k views

Writing array to vrt

I would like to write an array from a single band image to a 3 band vrt where each band has the ColorInterpretation() tag of red, green, blue respectively. My code below; from osgeo import gdal ...
0
votes
1answer
174 views

Increase contrast of merged Planet Labs scenes

I've download a few PlanetScope scenes from Celaya, MX. Taken alone they have a good contrast. Then I've merged them with gdalbuildvrt, which lowered the contrast: Link I've thought, that I could ...
0
votes
1answer
244 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"...