I have two rasters in Geotiff, same CRS. I tried to merge them and I have this error code

ERROR 4: `C:/Anita_Tepoztln/Rasters/e142.tif' does not exist in the file system, 
and is not recognised as a supported dataset name. 

ERROR 4: `C:/Anita_Tepoztln/Rasters/e145.tif' does not exist in the file system, 
and is not recognised as a supported dataset name. 

Traceback (most recent call last):

File "C:\PROGRA~2\Quantum GIS Lisboa\bin\gdal_merge.py", line 509, in 
File "C:\PROGRA~2\Quantum GIS Lisboa\bin\gdal_merge.py", line 392, in main 
ulx = file_infos[0].ulx 
IndexError: list index out of range 

I wonder what I am doing wrong.

I am able to load the rasters and see them, not merging them

I am using Qgis Lisboa standallone installation, on Win7 64 16gb of RAM

  • The two DEMs are in the same CRS, but do they match the project's CRS as well? If not, that's probably the issue. – HeyOverThere Nov 14 '12 at 15:04
  • Yes, raster layers and the project are in the same crs (EPSG 4326, lat lon wgs84), so this is not the issue – Gerardo Jimenez Nov 14 '12 at 15:37
  • 1
    Are the two files really geotiffs with CRS information inside? What do you get from gdalinfo <filename>? – AndreJ Nov 14 '12 at 16:08
  • yes, I can see all the information about each raster layer, Do you want a copy of them? – Gerardo Jimenez Nov 14 '12 at 16:44
  • 1
    Yes, looks good. But the á in the folder path may spoil it. At least it does so here, with the non-ASCII-Letters omitted in the error log. Can you try a folder with only ASCII-letters? – AndreJ Nov 15 '12 at 6:35

Is "Anita_Tepoztlán" your Windows User name?

Non-ASCII-characters can cause breakdowns.

You may also need to reinstall QGIS is in a folder with only ASCII-characters in the title as well.

  • No, it was the name of the folder where I have all the raster layers – Gerardo Jimenez Nov 20 '12 at 16:34
  • 2
    In fact I had the same problem and the problem was that the path to the images contained one "á" so I changed to "a" and the algorith run normally. – Marlon Calispa Aug 14 '13 at 15:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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