I've created a .vrt file through a text editor. Trying to add it to a project has me baffled.

  • 1
    On Windows10/QGIS 3.12 CTRL+SHIFT+R >triple dots< select *.vrt
    – Mapperz
    Commented Mar 4, 2020 at 3:13
  • Do you have raster or vector VRT? Verify that VRT is OK with gdalinfo or ogrinfo and then just add as a new raster of vector layer as any other spatial file.
    – user30184
    Commented Mar 4, 2020 at 7:06

1 Answer 1


If it is a vector, then just click on add vector then choose vrt from the file list:

enter image description here

Do the same if it is a raster by clicking on add new raster.

enter image description here

Another way would be simply by dragging and dropping the file into the view or accessing it through the browser panel and drop it on the view.

If none of the above work then the file might be corrupted perhaps.

  • Thanks, looks like the file has an error... Thought I was just loading it the wrong way...
    – GeoJim
    Commented Mar 5, 2020 at 3:54
  • 1
    update us when you succeed @GeoJim !
    – GforGIS
    Commented Mar 5, 2020 at 5:13
  • Hi @GeoJim! Did you find a solution? Because in my case, I have an .vrt file that have sent me, but I can't open it. I think this line in my file is an error: <VRTDataset rasterXSize="0" rasterYSize="0">. Commented May 8, 2023 at 19:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.