[Qgis-user] Layer Actions Types

Giovanni Manghi giovanni.manghi at gmail.com
Sun Nov 7 14:34:29 PST 2010


> Is there a document or a webpage where I can read it?


Recently Giuseppe provided me with a very nice example on how to add
vectors/rasters with a python action


qgis.utils.iface.addVectorLayer('/home/gio/Desktop/%att1.shp','%att2',
'ogr')

qgis.utils.iface.addRasterLayer('/home/gio/Desktop/att1.tif','%att2')




More information about the Qgis-user mailing list