When adding a rasterfile with QGIS python console there appears an error when the first letter of a rasterfile to be added is not written in capital letters. Why this behaviour?
>>> qgis.utils.iface.addRasterLayer("C:\geodaten\natural_earth.tif", "raster")
Invalid Layer "Cannot open GDAL dataset C:\geodaten atural_earth.tif: `C:\geodaten atural_earth.tif' does not exist in the file system, and is not recognised as a supported dataset name."
>>> qgis.utils.iface.addRasterLayer("C:\geodaten\Natural_earth.tif", "raster")
Rasterlayer is added properly.
With vectorlayers the above mentioned problem doesn't exist. The QGIS version in use is 2.2.0