For qgis 1.9