0

I have a .vrt file with some SRTM tiles created from windows PC, so paths there are like:

<SourceFilename relativeToVRT="0">Y:\srtm_eurasia\Env\EarthEnv-DEM90_N55E120.bil</SourceFilename>

I assumed that I could correct paths directly in my vrt file to

<SourceFilename relativeToVRT="0">\mnt\srtm_eurasia\Env\EarthEnv-DEM90_N55E120.bil</SourceFilename>

As on linux I have this folder mounted like /mnt/... etc

But when I try to make a gdal translation to tiff for example it throws

0ERROR 4: \mnt\srtm_eurasia\Env\EarthEnv-DEM90_N70E105.bil: No such file or directory

So, I use a wrong way to write a path here?

3
  • 1
    Maybe due to backslashes?
    – user30184
    Commented Jan 24, 2023 at 10:17
  • But this file was generated with backslashes automatically from QGIS Commented Jan 24, 2023 at 10:21
  • It is well known that windows paths have backslashes howtogeek.com/181774/…
    – user30184
    Commented Jan 24, 2023 at 10:39

1 Answer 1

1

Yes, it was due to backslashes. Seems that from windows it generates backslashes. For Linux I changed the path and slashes too from \ to / Now it works.

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.