on qgis 1.8 you can add an action like this:<div><br><div>
<p style="margin:0px">qgis.utils.iface.addRasterLayer('[% "image" %]','[% "TOC_name" %]')</p><p style="margin:0px">where "image" is the field containing the image name and path and "TOC_name" the visualized name in TOC.</p>
<p style="margin:0px"><br></p><p style="margin:0px">bye</p><p style="margin:0px">^L^</p><br><div class="gmail_quote">2012/8/16 Alister Hood <span dir="ltr"><<a href="mailto:Alister.Hood@synergine.com" target="_blank">Alister.Hood@synergine.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">> Date: Wed, 15 Aug 2012 17:44:24 +0200<br>
> From: Ivan Mincik <<a href="mailto:ivan.mincik@gmail.com">ivan.mincik@gmail.com</a>><br>
> To: skampus <<a href="mailto:stefano.campus@regione.piemonte.it">stefano.campus@regione.piemonte.it</a>><br>
> Cc: <a href="mailto:qgis-user@lists.osgeo.org">qgis-user@lists.osgeo.org</a><br>
<div class="im">> Subject: Re: [Qgis-user] image boundary<br>
</div>> Message-ID: <1345045464.4203.7.camel@t61><br>
> Content-Type: text/plain; charset="utf-8"<br>
<div><div class="h5">><br>
> On Tue, 2012-08-14 at 19:15 -0700, skampus wrote:<br>
> > thanks to giovanni manghi who told me to use tileindex module of gdal<br>
> > in the raster menu.<br>
> > great! all it works so i have my brand new shapefile having the path<br>
> > each photo as attribute of each polygon.<br>
> ><br>
> > now i'd like to add an action in order to add the image to TOC.<br>
> > what is the qgis internal function to use as an action to add raster<br>
> > image to toc?<br>
><br>
> Do You know that You can use 'gdalbuildvrt' command to create virtual<br>
> raster layer containing all your raster files and load it as one layer.<br>
> Than files matching your viewport will be automatically loaded by demand.<br>
<br>
</div></div>FWIW Gdalbuildvrt is also available in the QGIS menu under Raster>Miscellaneous<br>
But there are cases where using an action to load a raster from a tileindex is preferable...<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
</div></div></blockquote></div><br></div></div>