Questions tagged [vrt]

GDAL Virtual Dataset (XML based)

Filter by
Sorted by
Tagged with
0
votes
0answers
35 views

GDAL_RASTERIO_RESAMPLING error when using QGIS GDAL translate

I have a VRT of a multiband raster layer from Sentinel 2. I converted it to a GTiff using GDAL translate in QGIS 3.10 and, though I received the output I wanted, I got hundreds or thousands of these ...
0
votes
0answers
22 views

Making all raster tiles have same colour scale as parent raster using QGIS

I created a few hundred 100 x 100 pixel tiles from a single raster image. Each tile will be converted to PNG and be labelled for an object detection model. I made the tiles by clicking Export -> ...
1
vote
0answers
27 views

Using Java BuildVRTOptions​ to create a VRT file

I wish to dynamically build a GDAL VRT file from a java application. I really want to avoid driving the CLI from within the app. I can easily create the VRT file: final String vrtFilePath = "...
1
vote
1answer
35 views

Efficient VRT GeoTIFF image stack reading

My aim is to read time series with Python from a stack of spatially aligned GeoTIFF files as efficient as possible. The time series is not only limited to one pixel, but can also relate to a certain ...
0
votes
1answer
20 views

DEM Raster Data hosted on GeoServer 2.15 serving OSGEarth platform

I can locally host DEM data and successfully read this data within OSGEarth application. Yet when I host same data on GeoServer (2.15), the terrain disintegrates / shows spikes all over respective ...
1
vote
1answer
48 views

Soilgrids - Using VRT format in R

Is it necessary to use GDAL when trying to use VRT files in R? Raster Attempt Following this answer I tried: link <- "/vsicurl/https://files.isric.org/soilgrids/latest/data/clay/clay_0-...
1
vote
0answers
27 views

Output VRT from 3 tif files is incorrectly georeferenced despite having correct and same CRS

I have 3 .tif files of a Natural Earth world map, each representing the bands of the source NE world map. I run gdalbuildvrt -a_srs EPSG:4326 -separate rgb.vrt red.tif green.tif blue.tif to create a ...
1
vote
0answers
40 views

Use relative path in VRT with VSIZIP

I'm trying to load a GPKG file into QGIS by a VRT file. The vector is inside a ZIP. So I'm using the vsizip. I would like to use just relative paths. But when I try to load it, the new layer comes ...
1
vote
1answer
42 views

GDAL: use virtual file system (VSI) as datasource in virtual format (VRT files)

I cant' make something like that work: <OGRVRTDataSource> <OGRVRTLayer name="adresses-33"> <SrcDataSource>/vsigzip//vsicurl/https://adresse.data.gouv.fr/data/...
0
votes
0answers
28 views

GDAL translate not creating .tif when running a VRT file with Python function

I've created a .vrt file using gdal.BuildVRT() and tried to apply a simple Python function Using Derived Bands to multiply original values (all values are 1) and then use gdal.Translate() to write it ...
0
votes
0answers
53 views

Why am I getting nodata values from gdal_translate only when bounding box under a certain size? Is there a minimum bounding box size?

Problem: If my bounding box is too small, I get nodata I am using gdal_translate to convert a .vrt into a .tif. If my bounding box is large, it works perfectly. BUT as soon as I decrease the size of ...
0
votes
0answers
18 views

Split one TIFF file into multiple TIFF files using VRT file

I have a VRT file like below <VRTDataset rasterXSize="10801" rasterYSize="10801"> <SRS dataAxisToSRSAxisMapping="2,1">GEOGCS["WGS 84",DATUM["...
2
votes
1answer
62 views

VRT with overlapping images

I want to create a WMS of a VRT of eventually ~2500 GeoTIFFs. At the moment it's only five of them. This is my workflow: Crop the (PDF) images in photoshop and save them as PNG. Load the PNGs in QGIS,...
1
vote
0answers
42 views

Blank screen when displaying vector file from spreadsheet in QGIS

I have a spreadsheet plugin installed. The Excel spreadsheet has coordinates in Australia's national grid GDA94 zone 56 which are metric. I open the Excel file and use the geometry button and ...
0
votes
2answers
69 views

QGIS - creating VRT does nothing

I've got 69 .asc files to make a nice colored and shadowed elevation map or levels contours, and maybe a 3D view. They all open and get shadows. One by one… So I would like to create a VRT ("menu:...
0
votes
1answer
226 views

Is it possible to build a .vrt file from multiple files with Rasterio?

I would like to build a vrt file from multiple dataset. I know the gdalbuildvrt but i don't find how I'm supposed to do the same using rasterio vrt object. Does anyone have a simple example ?
1
vote
1answer
202 views

Is it possible to create a VRT file with ogr2ogr?

I want to create VRT files from ungridded .asc files (example file). The VRT files should look like this: <OGRVRTDataSource> <OGRVRTLayer name="worms"> <...
0
votes
1answer
40 views

How to use gdal_grid with ungridded .asc DTM files

There was a question about processing ungridded .asc DTM files: Problem processing Slovenian LiDAR DTM with GDAL (and QGIS): "too many stepY values" error The answer helped a lot already, ...
0
votes
0answers
36 views

QGIS InputApp cannot read GDAL VRT and WMTS XML description files on iPhone

I tried to display various GDAL VRT raster files and WMTS XML description files in QGIS InputApp on iPhone without luck (see an example here: Storing GDAL VRT sources inside QGIS project files (.qgz, ....
0
votes
0answers
35 views

Preparing gridded data for GIS from Matlab

I'm looking for the best way to prepare raw data files for import into GIS. I am not a GIS user, but am analyzing data that will be passed to GIS users on our team. I am performing an analysis in ...
2
votes
3answers
279 views

Merging TIFFs while retaining details in GDAL

I am currently trying to merge overlapping raster TIFFs into one single, continuous image. Just using Merge results in a raster with borders, and it is unsatisfactory : However, using a pixel ...
0
votes
0answers
23 views

Select first valid datasource in VRT

When reading data from a VRT, gdal appears to interpolate values from all available rasters. Is there a way to configure the VRT in such a way that it selects the first valid raster in the dataset, or ...
0
votes
0answers
44 views

Using overviews of individual bands of a virtual raster

If I create a virtual multi-band raster (using gdalbuildvrt -separate to combine three layers into an RGB colour image) and each of the separate bands already has its own .ovr external overview, do I ...
0
votes
1answer
24 views

Using NASA Above landcover imagery in place with Qgis

Landsat-derived Annual Dominant Land Cover Across ABoVE Core Domain is composite tiled classified imagery dataset covering the years 1984-2014. The format is elegant and clever but hard to use. Each ...
0
votes
1answer
28 views

Using NASA Above landcover imagery in place with ArcGIS

Landsat-derived Annual Dominant Land Cover Across ABoVE Core Domain is composite tiled classified imagery dataset covering the years 1984-2014. The format is elegant and clever but hard to use. Each ...
4
votes
1answer
91 views

Storing GDAL VRT sources inside QGIS project files (.qgs, .qgz, .gpkg)?

After I managed to store SVG symbols in Geopackage BLOBs (Read (and write) SVG from Geopackage with QGIS) another idea was growing in my mind: Maybe we can store simple GDAL VRT sources in GPKG BLOBs ...
5
votes
2answers
350 views

Accessing CSV data directly from website

I want to do what this person has asked here. I am using QGIS 3.16 I have copied what was suggested and what seemed to work for the OP, however I am not getting any information displayed. The data ...
2
votes
1answer
145 views

Merging CSV layers (XYZ files with point coordinates)

I have list of many XYZ files with points without header an space delimited. Example: -877500 -1014000 471.95 -877500 -1013995 472.28 -877500 -1013990 472.61 -877500 -1013985 473.04 -877500 -1013980 ...
0
votes
0answers
25 views

gdalbuildvrt strips attribute table

I would like to create a virtual raster from an .img file that has associated .ige, .rde, .rrd, and .xml files. I am doing this to enable virtual I/O so I want an "exact copy" of the ...
3
votes
1answer
323 views

Converting grayscale VRT to palleted VRT using GDAL tools

I have this virtual file called virtual-raster.vrt with the following gdalinfo of: Band 1 Block=1x1 Type=Float32, ColorInterp=Gray I just want to convert it into a palleted one like so: Band 1 Block=...
1
vote
1answer
88 views

Refreshing VRT raster layer using PyQGIS

I'm working a lot with GDAL VRT raster layers in QGIS 3.14, often changing the file content while viewing the rasters in map canvas. When I zoom or refresh the canvas in QGIS 2.18, all modified VRT ...
2
votes
1answer
80 views

Create single VRT from images with the same name

I have a list of rasters some with the same date that I have to turn into VRTs with the same date too. The problem is that when I create a loop in the Gdal list it overwrites the VRTs that have the ...
0
votes
2answers
1k views

Reading VRT from SoilGrids in R

I need the global SOC stocks map at 0-30cm from the new SoilGrids 2.0: https://files.isric.org/soilgrids/latest/data/ocs/ I have no previous experience with VRT files. I have simply downloaded "...
2
votes
1answer
233 views

Why can't gdal open my VRT?

I am trying to reproject and retile BMNG data. So far I have processing my images into geotifs. I can view them together in QGIS and everything looks good: I then created a vrt file. The vrt file ...
1
vote
1answer
1k views

Rasterio IO Error: Read Failed and Gdal VRT_SHARED_SOURCE

I trying to follow some code on git which uses sentinel hub images code I'm stuck with one part of the code which opens and reads a grayscale tif image which for some reason returns a rasterio ...
3
votes
1answer
275 views

Need an alternative to modify overviews in a GDAL Virtual Raster (VRT)

I have built a VRT mosaic and overviews with these lines of code: out_vrt = os.path.join('/out/dir/', 'out.vrt') ds = gdal.BuildVRT(out_vrt, my_raster_list) ds = None ds = gdal.Open(out_vrt) factors =...
0
votes
0answers
141 views

QGIS GDAL Build VRT results do not reflect input raster values

I am having trouble successfully creating a VRT. My Build VRT gdal command results in values of ±1.79769e+308. The values should be 1,2,3, or 4. I've verified projection info is the same across the ...
0
votes
1answer
119 views

How can I modify a VRTRasterBand sub-class,etc from Python?

I am using GDAL to merge a series of overlapping rasters using Pixel Functions to combine the color bands. As a proof-of-concept, my approach has been to create a VRT, and then to modify it in a text ...
1
vote
1answer
155 views

BuildOverviews() not supported for VRT dataset

I am trying to build overviews in a VRT dataset with python GDAL. I try this code: out_vrt = os.path.join(out_dir, 'mosaic.vrt') ds = gdal.BuildVRT(out_vrt, [raster1.tif, raster2.tif]) factors = [...
1
vote
2answers
242 views

gdalbuildvrt.exe doesn't recognize existing path

I used this function before but it suddenly stopped working on some updates. The simple command throws an error. PS C:\> c:\ProgramData\Anaconda3\Library\bin\gdalbuildvrt.exe 'c:/tmp/index.vrt' 'c:...
2
votes
1answer
472 views

Build VRT from list of VRTs in Python

I have a list with lots of VRTs. Each VRT is the mosaic for a single band for a single band. What I want to do is to make a final TIFF with as many layers as bands. I'm trying to first make one VRT ...
2
votes
0answers
203 views

"Warning 1: All options related to creation ignored in update mode" (GDAL)

I am attempting to clip a raster using a polygon file (shapefile) and to save the result in memory. I succeed to do it using gdal.Warp and the option format=VRT using the following code. Please note ...
1
vote
0answers
64 views

Defining invalid regions of VRT file with rasterio in a way that allows windowing [closed]

I'm using a VRT file to represent a bunch of individual map tiles as one big image. I noticed that some of the data is invalid but not marked as such (via the invalid data value). I'd like to define ...
2
votes
3answers
60 views

Describing/creating VRT/CSVT files of variable length space separator for gdal_rasterize command

I have LAS points (DTM) files with space separators. And the problem is for Z coordinate: 360020.678 6245020.453 0.008 ... 364895.678 6245245.453 14.970 ... 364370.678 6246870.453 112.312 ...
4
votes
1answer
264 views

How can I stop QGIS from crashing when opening layer properties of large raster?

I am using a VRT to organize and examine a very large LiDAR dataset (>250GB). I never display the full extent, so I can normally navigate around without any problems loading the tiles. But QGIS ...
0
votes
0answers
247 views

GDAL virtual dataset with transparency

I'm trying to create image pyramid of multiple smaller images for GeoServer use. I have done this by first creating virtual dataset with gdalbuildvrt and then with gdal_retile.py. The problem I'm ...
6
votes
1answer
127 views

Difference between merge and create virtual raster

I have the DEM of a defined region that has been split into sub-DEM with a resolution of 1 km x 1 km. When I merge the sub-DEM to create a single DEM (Raster -> Miscellaneous -> Merge), the overall ...
1
vote
0answers
59 views

Many-Many Relationship in GDAL Pixel Functions

I am using pixel functions (in Python) in VRT derived data sets. As far as I know it is only possible to use One-One or Many-One relationships within a pixel function. In other words, the in_ar ...
1
vote
1answer
70 views

How to obtain elevation info from VRT file?

I have a VRT mosaic file I made from thousands of ESRI GRID files. It looks something like this. <VRTDataset rasterXSize="111831" rasterYSize="94785"> <SRS dataAxisToSRSAxisMapping="1,2"&...
2
votes
1answer
364 views

stack_raster.cpp:35:99: error: 'YES' was not declared in this scope

I've been playing around with C++ and the API for GDAL to create some functions that I have done using Python. One of them was to create a virtual raster based on a list of files found in certain ...