[Qgis-user] How make reading from protocol to use /vsicurl_streaming/ instead of /vsicurl/?

Jorge Gustavo Rocha jgr at geomaster.pt
Tue Sep 21 05:03:42 PDT 2021


Hi Jukka,

It works. I'm on QGIS 3.21, but I think any recent QGIS version should work.

Screenshots:

https://nextcloud.geomaster.pt/index.php/s/xDHcQdrQnSQi7RT

https://nextcloud.geomaster.pt/index.php/s/twPTSWizH7STkLT

Regards,

Jorge

On 21/09/21 12:44, Rahkonen Jukka (MML) wrote:
>
> 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
> <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>
> *Lähetetty:* tiistai 21. syyskuuta 2021 13.56
> *Vastaanottaja:* Rahkonen Jukka (MML)
> <jukka.rahkonen at maanmittauslaitos.fi>; 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
> <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 <https://lists.osgeo.org/mailman/listinfo/qgis-user>
>
>     Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user <https://lists.osgeo.org/mailman/listinfo/qgis-user>
>
> -- 
> http://www.spatialys.com <http://www.spatialys.com>
> My software is free, but my time generally not.
>
> _______________________________________________
> Qgis-user mailing list
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20210921/04a34c38/attachment.html>


More information about the Qgis-user mailing list