Hi, Sorry, my previous message was a bit "dry". Here are the steps:
* Open the vector layer properties dialog * Go to the Style tab * Use "Single symbol renderer" * Choose "SVG Symbol" * In the text input with the path to SVG, instead of using the "..." button to choose a file, click instead of the button right next to it, to be able to enter an expression. Choose "Edit" * It opens a new dialog, with 2 tabs : Expression and Function editor -> Go to the latest "Function editor" tab. * You can here create a "New file" via the button at the top * Then choose a name, and then you can copy/paste the whole text you found in the URL https://gist.github.com/mdouchin/d66191ccfadd74cff3f0 * Then you can go back to the first tab "Expression", and use an expression such as show_picture( "picture_path_fieldname" ) where "picture_path_filename" is the name of the field containing the path to the image for each feature. (you can have absolute path, or better, paths relative to the QGIS project) This is a bit cumbersome, but should work :) Regards, Michaël 2016-10-06 14:41 GMT+02:00 Joshua Quesenberry <engn...@gmail.com>: > Hi Michaël, > > > > Sorry, I missed your reply when it originally came through. Can you > elaborate further on how to use the code snippet? I’m only very vaguely > following what you’re saying to do so far. > > > > Separately, would it be possible to add an image type to the symbol editor > for shapefiles, etc. that can use the an equation to create the image name > and then display the image from there? > > > > Thanks, > > > > JQ > > > > *From:* kimaidou [mailto:kimai...@gmail.com] > *Sent:* Monday, September 19, 2016 3:11 AM > *To:* Joshua Quesenberry <engn...@gmail.com> > *Cc:* qgis-developer <qgis-developer@lists.osgeo.org> > *Subject:* Re: [Qgis-developer] Show Geotagged Images on Map > > > > Hi, you could use this snippets : > https://gist.github.com/mdouchin/d66191ccfadd74cff3f0 > > Basically, it loads an image for each feature in a SVG, which can then be > used as a symbol. > > Regards > > Michaël > > > > 2016-09-18 22:35 GMT+02:00 Joshua Quesenberry <engn...@gmail.com>: > > All, > > > > I was wondering if anyone knows of a current method for displaying > geotagged images (or maybe just a thumbnail) directly on the map canvas > without having to click on one image a time? I saw this thread, but the > solution seems to be deprecated now: http://osgeo-org.1560.x6. > nabble.com/Showing-thumbnails-of-geotagged-photos-td5008632.html > > > > Thanks, > > > > JQ > > > _______________________________________________ > Qgis-developer mailing list > Qgis-developer@lists.osgeo.org > List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer > Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer > > >
_______________________________________________ Qgis-developer mailing list Qgis-developer@lists.osgeo.org List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer