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