QGIS Hyperlink – Adding Relative File Paths in Points Layer

.jpgfile pathhtmlhyperlinkqgis

I would like to add hyperlinks to each point in a points layer in QGIS 1.7.0 running on Mac OS X 10.6.7, but I have several requirements:

(1) Each hyperlink has to be a relative path to the linked file.

(2) The linked files are mainly JPEG images, but may occasionally be HTML files. Either way, I want them to open upon click in the OS's default image/html viewer, regardless of what computer I open it on.

(3) The linked filenames are already specified in a column in the point layer's attribute table. I want to use those filenames in they hyperlinks so I don't have to manually type in a path for each point (there are several hundred points, each pointing to a different file).

How do I do this? Thanks.

Best Answer

(1) and (2) are possible with eVis plugin (Documentation).

Ad (3): You should be able to use Field Calculator to add the path to the filenames you already in attribute table. Field calculator is described here: http://www.qgis.org/wiki/Calculating_field_values. You can use + operator to concatenate strings.