1

I'm trying to build .vrt from georeferenced DEM files from Photoscan.

gdalbuildvrt global_dem.vrt dem*.tif

It was working on Ubuntu 12.04(GDAL 1.10.0, released 2013/04/24), but now it fails on Ubuntu 14.04 (GDAL 2.1.0, released 2016/04/25)

ERROR 1: Failed to write .vrt file in FlushCache().

How to fix it?

  • Had the same error. For me this turned out to be a permissions issue. – gmfm Jun 28 '17 at 17:50
1

I also had the same error, which was solved by specifying the path for the virtual catalog file (.vrt)

We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.

1

Error of FlushCache is most likely a path error. You have to check for errors like the path preceding the filename does not exist, another file with the same name exists etc.

In general, it will be an error caused by something not related to gdal itself, but common errors of I/O.

-1

For me, it arrives when I have already a file with the same name. When I deleted the file, no more error.

We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.

protected by PolyGeo Sep 24 '18 at 10:30

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

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