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.roua...@spatialys.com>
Lähetetty: tiistai 21. syyskuuta 2021 13.56
Vastaanottaja: Rahkonen Jukka (MML) <jukka.rahko...@maanmittauslaitos.fi>; 
qgis-user@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@lists.osgeo.org<mailto:Qgis-user@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.
_______________________________________________
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to