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

  • 1
    You mean so each attribute has a different URL? Is there any pattern to the URLs? Is your problem that you can't edit the table? What have you tried? – nmtoken Dec 8 '16 at 8:37
  • No, not each attribute but each row. – Paulo Martinho Dec 12 '16 at 6:23
  • You should post your solution as an answer, not as an edit to the question – nmtoken Dec 12 '16 at 7:00
  • I tried, but it doesn´t accept. Thank´s – Paulo Martinho Dec 12 '16 at 7:29
  • @Paulo Martinho Did you solve it? I want to add an online picture from Google Drive to my qgis2web page. Which Qgis version did you use? Qgis 2.18? – Paulus Feb 3 '18 at 16:13
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

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,

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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