Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want an attribute in a shapefile named "Link" to add.

The works are all fine but then I would like to add a link in my directory.

This link accesses a PDF. Now, this PDF is not shown.

Is there any other solution or there is nothing to be done?

share|improve this question
Where is the target of the link? On a network or on a local file system? How will the link be used, by clicking once on inspection, or is it simply a record which will be used in another system? There are a lot of case specific issues to this question which are outside of gis/QGIS. – Willy Jul 13 '12 at 10:40
The target of the link is stored on a local server. The connection is to simply display the PDF later. – user8839 Jul 16 '12 at 14:21

Three possibilities tested on Windws XP:

  • create a new action of Type "Generic", action: cmd /c [% "url" %] where path is a field containg the full pathname: D:\Download\test.pdf

  • create a new action of Type "Windows", action: "C:\Programme\Adobe\Reader 9.0\Reader\AcroRd32.exe" "[% "path" %]" where path is a field containg the full pathname: D:\Download\test.pdf

  • install apache for your local PC, point localhost to the root of D:\ In Qgis, action of type "Open", action: http://[% "url" %] where url is a field with the path in format localhost/download/test.pdf

Some programming languages allow files to be accessed by file://D:/, but this does not work here.

share|improve this answer
how to open file location in network \\fileserver\filefolder\file1.xls I tried all but couldn't. – kinkajou Sep 7 '12 at 7:21

From the answer of Andre Joost, I found this video, hope it could help:

Added: another video

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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