I am trying to write a loop to load .adf files into QGIS and create a contour map from each one. The response to an older question about loading .adf files (here: Loading *.adf files into QGIS?) was very good but I would like to know how to perform the same action using Python.
Turns out that the file was indeed a raster file 'hdr.adf'. The python script iface.addRasterLayer(fileName, rasterName)
worked
layer = QgsVectorLayer("/path/to/file.adf", "layer_name", "ogr")
. – Joseph Sep 15 '15 at 15:22