I am new to the QGIS python console. I am trying to load a raster layer from the console, set the crs and a specific style from a qml file.
layerPath = os.path.join(raster_dir,raster_name) fileInfo = QtCore.QFileInfo(layerPath) baseName = fileInfo.baseName() layer = QgsRasterLayer(layerPath, baseName)
I would like to set up the projection info and then load it to QGIS
I do have a grey raster on the windows. How can I set up the qml file to load ?
Thanks for your help