2

I have some layers, and I would like to link the field photograph from the attributes table to an image (Web URL).

How can I do that? [Qgis 2.18 - Windows 10]

enter image description here

enter image description here

Something like...

enter image description here

I finally found the answer

enter image description here

Paulo Martinho
  • 980
  • 1
  • 8
  • 20

2 Answers2

3

1 - Create the attribute for the pictures (E.g. PICTURES Text(100)).

2 - Go to Fields in the proprieties of the layer and change the Edit widget (From Text edit to Web view).

enter image description here

enter image description here

3 - Now go to attribute tables. Put the layer in edit mode and insert the link or URL (for each row). Save it...

enter image description here

4 - Use the Identify Features and click above the feature.

enter image description here

Paulo Martinho
  • 980
  • 1
  • 8
  • 20
1

I am not sure wether you should use "web view" or "photo" as field type.
In any case the URL should be indicated for each feature in your "Foto" field. You could also add a main one as the "Default value" (rather than constraint) in the "web view" or "photo" window.
Cheers,

Victor
  • 1,852
  • 14
  • 20