Questions tagged [vrt]

GDAL Virtual Dataset (XML based)

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

Convert list of .hdf-files to .vrt in python with Gdal

I'm a little lost. I have a directory with some Landsat-8-scenes. There are files that end on .hdf and they are always accompanied by a .hdr file. What I wanted to do is to convert these scenes to a ...
2
votes
0answers
23 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
15 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
2answers
25 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 ...
3
votes
1answer
35 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
33 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 ...
4
votes
0answers
41 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 ...
0
votes
0answers
33 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
44 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
76 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 ...
0
votes
0answers
27 views

Grid specification with multiple z fields/attributes in VRT-file in GDAL

I am trying to transform a csv file into a tiff-file (raster). As a first step I am creating a VRT-file. My csv has the following row structure: E_KOORD,N_KOORD,Z1,Z2,Z3 How do I correctly specify ...
1
vote
1answer
143 views

Create elevation-service from geotiff using python and gdal

I'd like to create a little server for us, that tells us the elevation of a point in a geotiff file. I already got it working basically using the following: dataset = gdal.Open('test_file.tif', gdal....
4
votes
2answers
196 views

QGIS VRT values differ from the source rasters

Background: I have six adjacent DEMs (NED 1/3 arc-second .img files from The National Map). The min-max values among the six range from: 90.4 - 2100.0 Problem: Using the 3.6.2 Raster > ...
0
votes
1answer
90 views

Is saving rasters to VRT bad convention?

I'm working with a lot of rasters (dozens of thousands) and would like to store them for a while. They will be used intermittently, but never all at once! The size of VRT (~2 kb) is such a positive ...
0
votes
0answers
55 views

Generating VRT in batch at GDAL

Is there any way to generate a virtual batch (.vrt) in batch? I imagine the coordinates should be in a .txt file and related to the name of the images that will be cropped. There are more than 1,000 ...
1
vote
0answers
88 views

GDAL/ogr2ogr .vrt driver - ERROR 1: Unable to find source field [closed]

We are using ogr2ogr to convert GML to Geopackage v1.2, using a .vrt to enforce a "schema" (reason: the greater control it offers over using a .gfs mapping file (e.g. enforcing nullable fields, ...
2
votes
0answers
75 views

VRT Files from QGIS2+ makes QGIS3 crash when opened

We got a bunch of VRT files that we made using QGIS 2 and which reference a varying number of ECW files (from 8 to 300). Those VRT files were perfectly runing QGIS 2.18. Problem is: Opening those ...
2
votes
1answer
79 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
247 views

gdal_translate errors with VRT: GetBlockRef failed and IReadBlock failed

I am projecting global rasters with the Homolosine. gdalwarp reprojects it nicely, but it does not compress the output, that must be done afterwards with gdal_translate. To reduce computation time, I ...
2
votes
1answer
80 views

When building a VRT in QGIS, which input raster will be assigned which band number?

I don't understand how QGIS assigns the band numbers to the input rasters for a virtual raster catalogue. Unfortunately the bands in the compiled virtual raster catalogue will only have the names "...
0
votes
1answer
79 views

Creating tiles from complex VRT

I have thousands of GeoTIFF source files that cover whole country in 6 different layers. I have created VRT file for each layer. I loaded everything in QGIS, assigning correct colors to bands in ...
0
votes
2answers
224 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....
1
vote
0answers
35 views

QGIS: can I somehow display a virtual raster of 7000 zipped GeoTiffs?

I've built a virtual raster of 7000 zipped geotiffs (each about 3600x2400 px). The GeoTIFFs have overviews. I've tried to open it with QGIS desktop application (via Add Raster Layer). Alas, QGIS ...
1
vote
1answer
254 views

Add a NoData buffer to a raster with rasterio

I am currently trying to extract Web Mercator tiles from a Geotiff raster using rasterio VRT (version 1.0rc5). The tiles sometimes exceed the extent of the raster, which causes me trouble. Reading ...
1
vote
0answers
203 views

Building pyramids of virtual raster not permanent when file is moved

I have a folder saved under: C:\QGIS\Active Layers\ In the "Active Layers" folder there our two folders; one called "Geotiffs" and the other "Virtual Raster". In QGIS 2.18.20 I created a virtual ...
2
votes
1answer
66 views

GDAL/OGR Error: Cyclic VRT opening detected

GDAL 2.2.4 (64bit Windows) throws an error during opening of a cyclic OGRVRT file. There was no problem with cyclic VRTs in GDAL 1.10.1 (32bit Windows). Here is a sample VRT file, which I used to ...
1
vote
0answers
95 views

QGIS 3.0.3 - Shift when saving image from Google Satellite as VRT

I tried to save Google satellite images with "save as", using VRT option, and setting up the correct resolution. Everything works but the resulting image is slightly shifted to the north, about 3 ...
0
votes
1answer
167 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
0answers
209 views

gdal_translate consuming too much memory when writing big JPEG2000 file

I am converting a 30.000 x 30.000 vrt image (made of JPEG2000 subimages) into a single (big) JPEG2000 image, using the KDU plugin. gdal_translate -of JP2KAK -co QUALITY=100 my30000_3000.vrt myOutput....
2
votes
2answers
244 views

OGR SQL Query not working in VRT layer

I'm having trouble with one SQL query I'm using on a shapefile in my VRT layer. My goal is to import several shapefiles to a PDF using OGR, GDAL and Python. My shapefile has follwing structure: ...
3
votes
1answer
130 views

OGR set different features to column name in PDF

I'm trying to import shapefile data into a geospatial PDF using OGR and Python. My shapefiles are structured as follow: shapefile1.shp: {stratt1: string1, intatt1: 1, ...} and shapefile2.shp: {...
3
votes
1answer
216 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. ...
4
votes
1answer
301 views

Importing CSV (via VRT) to PostGIS is slow with -skipfailures?

I am importing about 60 million records of csv data (about 25gb) to Postgresql server using ogr2ogr After googling million times, I found out that I can make VRT file and uploading my csv file using ...
0
votes
1answer
288 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? ...
1
vote
1answer
176 views

Forming vrt of 4139 ecw files?

I have 4139 ecw files of aerial photography that I would like to be able to open fairly easily and quickly in a QGIS project. I thought a virtual raster would be the way but when I have tried it comes ...
0
votes
1answer
241 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"...
0
votes
0answers
552 views

How to mask one raster using another?

I wish to apply one raster (GeoTIFF) as a mask to another raster. How can I do this using GDAL tools? I'd be happy to achieve this as a virtual raster because these images are large. Will it be ...
1
vote
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
343 views

Reading an OGR VRT with geometry from an Oracle OCI data source

I am having trouble creating/reading OGR VRT files from an Oracle OCI data source. I am running GDAL 2.2.1 on Windows 7 Professional SP1. My data source is an Oracle 11g (11.2.0.4.0) 64bit database ...
2
votes
1answer
1k views

GDAL Warp to in-memory raster

So, I have a few rasters I need to use for processing, but the task requires them to be in a different SRS than they currently are. GDAL Warp would be the go-to solution, however, it saves the ...
0
votes
0answers
130 views

reprojecting a tif file

I have a tif file whose gdalinfo provides the above displayed information which is geographically projected and I have to assign Mercator 2SP projection to it. So I created lat.vrt, lon.vrt and data....
3
votes
0answers
164 views

Java GeoTools read VRT file

I am trying to read a GDAL VRT file. I have included <!-- VRT Format (reader) --> <dependency> <groupId>org.geotools</groupId> <artifactId>gt-...
0
votes
0answers
48 views

Getting error while assigning Geolocation to raster

I am using VIIRS imagery EDR dataset and trying to give Geolocation to Brightness Temperature layer by creating VRT files of Longitude, Latitude and Brightness Temperature layers given in HDF5 dataset....
1
vote
0answers
172 views

Not able to figure out what is wrong with geolocation or projection in upoaded raster

I am working on VIIRS SDR dataset. I had different layer of Brightness temperature, latitude and longitude in given .HDF5 dataset. Using reference from http://geoinformaticstutorial.blogspot.in/2014/...
1
vote
1answer
133 views

Getting ValueError while creating VRT using python

I am trying to create VRT file using python(GDAL). I am getting "ValueError: array larger than output file, or offset off edge". How to solve this error? Code written for the same is as follows. ...
1
vote
0answers
62 views

How to include long.vrt and lat.vrt into bt.vrt as x-dataset and y-dataset respectively, Using python?

I am using following code to create bt2.vrt file using python. import numpy as np import gdal from gdalconst import * import osr # Function to read the original file's projection: def GetGeoInfo(...
2
votes
1answer
699 views

Building virtual raster in QGIS?

I have attempted to build a virtual raster in QGIS to avoid working with several smaller mosaics. That ended up well, and I saved all of these individual files as tiff files. Now I am trying to save ...
1
vote
1answer
588 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 ...
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....
7
votes
1answer
848 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 ...