[Qgis-user] Http access to json return

Karl Magnus Jönsson Karl-Magnus.Jonsson at kristianstad.se
Wed Jun 24 04:37:47 PDT 2020


Hi!
I’m also interested this functionality. Need to use OAuht2 authentication but that seems not to be available. Guess there is just an solution programmatically then.

Karl-Magnus

Från: Qgis-user <qgis-user-bounces at lists.osgeo.org> För Ben Hur Pintor
Skickat: den 24 juni 2020 10:23
Till: Steve Sgalowski <steve.sgalowski at gmail.com>
Kopia: QGIS User <Qgis-user at lists.osgeo.org>
Ämne: Re: [Qgis-user] Http access to json return

Hi!

If it's a vector layer (e.g. geojson response) that you'll load via API, you can try using the Data Source Manager -> Vector Tab and use Protocol: HTTP(S), cloud, etc.. You can select the proper Type and input the URI similar to the image below. This will load the file/response as a QGIS layer.

[https://user-images.githubusercontent.com/22940966/84317347-3248c100-ab9f-11ea-8a33-98bff1d91e19.png]

I haven't tried it yet for CSV / non-spatial data though.

All the best,
Ben Hur

On Wed, Jun 24, 2020 at 2:23 PM Andreas Neumann <a.neumann at carto.net<mailto:a.neumann at carto.net>> wrote:

Hi Steve,

Not that I know of, but:

- you could have an onload Python script that runs when the form opens

- you could have a web-widget with an onload javascript that does some network requests

Such rather "developer centric" questions are more likely to get responses on the qgis-developer mailing lists, btw.

Greetings,

Andreas

On 2020-06-24 07:22, Steve Sgalowski wrote:
Is there  widget  on qgis that does http out with api and returns data in json or csv format?.

Stephen.


_______________________________________________
Qgis-user mailing list
Qgis-user at lists.osgeo.org<mailto:Qgis-user at lists.osgeo.org>
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


_______________________________________________
Qgis-user mailing list
Qgis-user at lists.osgeo.org<mailto:Qgis-user at lists.osgeo.org>
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


--
---
Ben Hur S. Pintor
bnhr.xyz<https://bnhr.xyz/>
hi at bnhr.xyz<mailto:hi at bnhr.xyz>

[https://docs.google.com/uc?export=download&id=1RWxakH_JIlVojbdRj8QYwVsdJVnAYVHT&revid=0B5hrESDcDUYodlYvUjBmbnp6RlB0YmRVemlJSzJ1TldvVHY0PQ]
open spatial & data solutions
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20200624/f4a2d1cf/attachment.html>


More information about the Qgis-user mailing list