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

Even Rouault even.rouault at spatialys.com
Tue Sep 21 03:56:29 PDT 2021


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" 
> -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
> 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/20210921/b216ff92/attachment.html>


More information about the Qgis-user mailing list