[Qgis-user] How make reading from protocol to use /vsicurl_streaming/ instead of /vsicurl/?
Rahkonen Jukka (MML)
jukka.rahkonen at maanmittauslaitos.fi
Wed Sep 22 00:14:20 PDT 2021
Hi,
I tried also with QGIS 3.21 nightly and it did not work any better for me. I do not see the Options panel as in the screenshot by Jorge. Somehow it feels like my QGIS does not manage to make the http connection. I am behind a proxy server but I can reach WMS and WMTS services through the proxy.
-Jukka Rahkonen-
Lähettäjä: Rahkonen Jukka (MML)
Lähetetty: tiistai 21. syyskuuta 2021 14.45
Vastaanottaja: qgis-user at lists.osgeo.org
Aihe: Re: [Qgis-user] How make reading from protocol to use /vsicurl_streaming/ instead of /vsicurl/?
Hi,
I have tried, but that does not work for me with QGIS 3.18. Opening the URL (with or without double quotes) as a file gives me just this:
Invalid Data Source: https://api.digitransit.fi/routing/v1/routers/hsl/isochrone?fromPlace=60.168,24.938&mode=WALK,TRANSIT&date=2019-11-01&time=08:00:00&maxWalkDistance=500&cutoffSec=1800&cutoffSec=3600 is not a valid or recognized data source.
-Jukka-
Lähettäjä: Even Rouault <even.rouault at spatialys.com<mailto:even.rouault at spatialys.com>>
Lähetetty: tiistai 21. syyskuuta 2021 13.56
Vastaanottaja: Rahkonen Jukka (MML) <jukka.rahkonen at maanmittauslaitos.fi<mailto:jukka.rahkonen at maanmittauslaitos.fi>>; qgis-user at lists.osgeo.org<mailto:qgis-user at lists.osgeo.org>
Aihe: Re: [Qgis-user] How make reading from protocol to use /vsicurl_streaming/ instead of /vsicurl/?
Jukka,
Somewhat counter-intuitively, you can use "https://api.digitransit.fi/routing/v1/routers/hsl/isochrone?fromPlace=60.168,24.938&mode=WALK,TRANSIT&date=2019-11-01&time=08:00:00&maxWalkDistance=500&cutoffSec=1800&cutoffSec=3600" as a filename when using the File source type. This is due to GeoJSON driver having a particular logic when passed a http[s]:// filename to ingest it fully in memory.
Even
Le 21/09/2021 à 12:46, Rahkonen Jukka (MML) a écrit :
Hi,
This command gives a result with ogrinfo:
ogrinfo /vsicurl_streaming/"https://api.digitransit.fi/routing/v1/routers/hsl/isochrone?fromPlace=60.168,24.938&mode=WALK,TRANSIT&date=2019-11-01&time=08:00:00&maxWalkDistance=500&cutoffSec=1800&cutoffSec=3600"<https://api.digitransit.fi/routing/v1/routers/hsl/isochrone?fromPlace=60.168,24.938&mode=WALK,TRANSIT&date=2019-11-01&time=08:00:00&maxWalkDistance=500&cutoffSec=1800&cutoffSec=3600> -al
If I try to use the URI part with QGIS with Add layer - Vector - Protocol - HTTP/HTTPS/FTP then QGIS seems to add automatically /vsicurl/ into the service request. With this service /vsicurl/ does not work but /vsicurl_streaming/ works. It there any way to force QGIS to use the streaming mode?
The debugging tools do not seem to log the network traffic from the "read from protocol" requests. Is that a right observation?
-Jukka Rahkonen-
_______________________________________________
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
--
http://www.spatialys.com
My software is free, but my time generally not.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20210922/3b304cdd/attachment.html>
More information about the Qgis-user
mailing list