I have a Geoserver WMS of point locations with urls in one of its attribute fields. If I do a getFeatureInfo request on this in Qgis, using identify, it just returns a string without hyperlink functionality on the urls. For my application it should be able to link to external websites and open local file folders. Preferably without having to copy and paste. So far, I tried to convert this string to a html link by wrapping it in html-tags, like:

<a href="url" target="_blank">open</a>

As shown in the image the hyperlink tries to open in another instance of QGIS instead of a browser, which fails.

enter image description here

My Question

Is there any way to disclose urls in the feature attributes of a WMS in Qgis with working hyperlinks?

  • Have you tried to use &info_format=text/html? – user30184 Oct 12 '17 at 16:33
  • I tried, there is no difference. Also, I think the 'HTML' in the box above the output already specifies the format of the request. – Stef Verdonk Oct 13 '17 at 8:21
  • Info_format is not selected automatically even QGIS does use some default and yes, it seems to be already "html" in your selection box. Test how it works by using this link as it is and by editing the info_format into text/html demo.geo-solutions.it/geoserver/topp/… – user30184 Oct 13 '17 at 8:41
  • 1
    1/2 I have the same problem with QGIS 2.14.17. The following service has URLs in the GetFeatureInfo response ogc.bgs.ac.uk/cgi-bin/BGS_BGS-HPA_Radon_Potential/… e.g. ogc.bgs.ac.uk/cgi-bin/BGS_BGS-HPA_Radon_Potential/… works in a browser. – nmtoken Oct 15 '17 at 10:22
  • 1
    2/2 Links to pdf don't open in QGIS, links with HTML work in the Identify results window, but if you try to Open link in New Window just get a blank page as illustrated above. – nmtoken Oct 15 '17 at 10:25

Your Answer

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

Browse other questions tagged or ask your own question.