Hi,

will be fixed per https://github.com/OSGeo/gdal/pull/10663

Workaround with existing versions:

$ ogrinfo "/vsizip/{/vsicurl/https://governmentofbc.maps.arcgis.com/sharing/rest/content/items/4bba119c2e9042d683cc9378fb1e836e/data}/CoL_TransportationNetwork Jan 3 2024.gdb" INFO: Open of `/vsizip/{/vsicurl/https://governmentofbc.maps.arcgis.com/sharing/rest/content/items/4bba119c2e9042d683cc9378fb1e836e/data}/CoL_TransportationNetwork Jan 3 2024.gdb'
      using driver `OpenFileGDB' successful.
Layer: TRN_BRIDGES (Point)
Layer: TRN_DISASTER_RESPONSE_ROUTES (Multi Line String)
Layer: TRN_MEDIANS (Multi Polygon)
Layer: TRN_RAILWAY (Multi Line String)
Layer: TRN_SIDEWALKS (Multi Line String)
Layer: TRN_STREETNAMES (Multi Polygon)
Layer: TRN_BICYCLE_ROUTES (Multi Line String)
Layer: TRN_ROADS (Multi Line String)

Even

Le 27/08/2024 à 23:37, Simon Norris via gdal-dev a écrit :
Hi list,

Using ogrinfo/ogr2ogr, I can't find the right config options to read data at 
this url: 
https://governmentofbc.maps.arcgis.com/sharing/rest/content/items/4bba119c2e9042d683cc9378fb1e836e/data

Example command:
ogrinfo 
https://governmentofbc.maps.arcgis.com/sharing/rest/content/items/4bba119c2e9042d683cc9378fb1e836e/data
 \
   --config CPL_VSIL_CURL_USE_HEAD=NO \
   --config CPL_CURL_VERBOSE=YES \
   --debug ON

I've tried a few additional config options, but can't tell what the problem is 
- the output from CURL_VERBOSE includes a GET to the appropriate new url, and 
it presumably uses the token without issue because it reports on the correct 
attachment:

CURL_INFO_HEADER_IN: Content-Disposition: attachment; 
filename="transportation.gdb.zip"; size=307145

I can download without issue using `curl --location-trusted` but would prefer 
to use ogr directly.

thanks!

Simon

_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

--
http://www.spatialys.com
My software is free, but my time generally not.

_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to