id summary reporter owner description type status priority milestone component version severity resolution keywords cc 5985 Calculating statistics modifies relativeToVRT attribute Mike Taves warmerdam "Creating a VRT file using `gdalbuildvrt` generally creates a VRT file with relative paths to files, e.g.: {{{ tmp/gdalbuildvrt1.tif }}} However, after calculating raster statistics through either `gdalinfo -stats mosaic.vrt` or calling [http://www.gdal.org/classGDALRasterBand.html#a6aa58b6f0a0c17722b9bf763a96ff069 GDALRasterBand::GetStatistics], this attribute is modified to the default `relativeToVRT=""0""` and the content is modified to an absolute file path: {{{ /path/to/tmp/gdalbuildvrt1.tif }}} This quiet modification of the VRT file structure is not expected, and may break the links if the structure is later moved to a different path (assuming the links are still relative). It would be preferred to preserve the `relativeToVRT` attribute for VRT files when calculating statistics." defect closed normal 2.0.0 default 1.11.2 normal fixed antonio