<div dir="ltr">I created a virtual raster from a number of raster files (jpegs) all in one folder through the interface available from Raster>Miscellaneous>Build Virtual Raster. I saved the VRT file to the same folder as the raster images. I open as a VRT and all is well.<div><br></div><div>But if I copy the folder to another location, the VRT breaks when I open it. So I looked at the VRT file in Notepad++ and, sure enough, the pathnames to all the raster files are full pathnames instead of relative pathnames which is why moving the folder breaks it.</div><div><br></div><div>I assumed that if I saved the VRT in, or in a parent folder of, the folder with the raster images, then the paths to the rasters would be relative. I can't see an option to explicitly specify relative pathnames. I tried saving the VRT in the parent folder of the rasters but still it saves full pathnames. I tried specifying rasters using both 'all visible' and 'all in folder' method with the same result.</div><div><br></div><div>The actual paths in the VRT file look like this: </div><div><br></div><div><SourceFilename relativeToVRT="0">E:\ExerciseData\Raster\PM\pm4.jpeg</SourceFilename><br></div><div><br></div><div>It looks like the relativeToVRT attribute should be set to 1 to make relative paths, but how do I specify that from the Raster>Miscellaneous>Build Virtual Raster interface?</div><div><br></div><div>I'm using QGIS 2.12.3 from the standalone installer for Windows 64 bit.</div><div><br></div><div>Rich</div></div>