[Qgis-user] image boundary
Luca Lanteri
mescal72 at gmail.com
Fri Aug 17 00:07:43 PDT 2012
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 <Alister.Hood at synergine.com>
> > Date: Wed, 15 Aug 2012 17:44:24 +0200
> > From: Ivan Mincik <ivan.mincik at gmail.com>
> > To: skampus <stefano.campus at regione.piemonte.it>
> > Cc: qgis-user at lists.osgeo.org
> > Subject: Re: [Qgis-user] image boundary
> > Message-ID: <1345045464.4203.7.camel at 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
> Qgis-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20120817/ff0ff409/attachment.html>
More information about the Qgis-user
mailing list