I want to add a hyperlink to a pdf file into the attribute table of a vector layer. I already read the documentation about evis and the answered questions about this here. It didn't seem difficult, but I still can't create a hyperlink...can someone give me a short step by step information about this? Unfortunately I have no access to youtube...

I'm using Qgis (2.0.1) and evis is a plugin that should allow to create such hyperlinks via a event browser. I first added a column "Link" to the attribute table and put the link to the document in this column. this is the link to the documentation for evis: http://www.qgis.org/en/docs/user_manual/plugins/plugins_evis.html#figure-evis-2

Thanks a lot! G.H.

  • 1
    Can you edit the GIS software and version that you are using to create this PDF into your Question, and at the same time correct/explain what you mean by "evis", please? If you list the precise steps that you have tried, you are likely to get a quicker Answer.
    – PolyGeo
    Mar 5 '14 at 11:47
  • Have you seen this Q and A : gis.stackexchange.com/questions/29464/… ?
    – simo
    Mar 5 '14 at 13:23

You do not need to use evis plugin. The actions menu will allow you to open a link stored as attribute value. Please see the following section of QGIS documentation : http://www.qgis.org/en/docs/user_manual/working_with_vector/vector_properties.html#actions-menu

On the "Layer properties" > click Action.

Method A :

Then enter the type of the action ( I choose Unix), give the action a name and specifiy the command to open the file. I get something link :

/usr/bin/acroread  [% "LINK" %]

where LINK is the dynamic value you already have.

Method B :

Even more simple (available in QGIS 2.2 - not sure for v2.0.1) :

Choose type of action "open", then enter [% "LINK" %] in action field.

This method B was tested with success. See screenshot below :

QGIS screenshot

Edit : After settings actions, you will be able to open the link by selecting the Info tool and click the desired object. Clicking the "Open File" text into the pop-up window will open the file.

  • Thank you for your answer. I tried both methods and read the documentation and the result is similar: I now have a link in my attribute table but it's not a hyperlink.
    – qgs
    Mar 6 '14 at 7:02
  • Please see my edit + screenshot in first post
    – simo
    Mar 6 '14 at 8:31
  • I'm sorry, I did everything as you explained, but I still can't klick on the link. I also don't have this little sign like you in front of "Ouvrir fichier".
    – qgs
    Mar 6 '14 at 9:11
  • Are you sure, you have selected the desired layer is selected? Be sure your action is defined as follow : i.imgur.com/yjFNaoi.png
    – simo
    Mar 6 '14 at 9:38
  • Yes I did this and I tried it again, but it still doesn't work. My action looks similar to yours but I have "capture" is checked (I can't deselect it).
    – qgs
    Mar 6 '14 at 9:53

Not the answer you're looking for? Browse other questions tagged or ask your own question.