-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error using GDAL Virtual File Systems #2227
Comments
|
@rouault no, just letters and '_' in folder and file names. 'CPL_GS_ENDPOINT' is not mentioned in gdal documentation. What is it for? I tried set the variable to both 'storage.googleapis.com' and 'storage.cloud.google.com' and did not work... |
Do your settings work with google cloud client "gsutil ls gs://your_bucket" ? |
@rouault |
Define CPL_CURL_VERBOSE=YES as environment variable, re-run and post output |
yes. Check your GS_ACCESS_KEY_ID and GS_SECRET_ACCESS_KEY values. Maybe you've switched them ? |
Ah so your bucket name is "test_bl,_data" with a comma ? |
@rouault Does it matter than I am running my code in colab and I have authenticated using the following code (to use the gcs client apis): |
I've no knowledge of Colab, but I fail to see how it would interact with GDAL. GDAL doesn't its own thing. I'm a bit at loss if it is just a user issue on your side or some real bug. You're not running the latest GDAL version either, so maybe there would be some later fixed bug, but digging a bit in history doesn't show anything particularly relevant. |
@rouault |
@rouault Thank you for your help! |
Hi,
I am trying to open and read tif images I stored on Google Cloud storage using the virtual file systems. My GDAL version is 2.2.3 (somehow failed to upgrade on Google Colab).
Here's what I have tried:
!gdalinfo --config GS_ACCESS_KEY_ID 'myID' --config GS_SECRET_ACCESS_KEY 'myKEY' /vsigs/bucket_name/subfolder/image.tif
and I would get:
ERROR 11: HTTP response code: 403 - Failed writing header gdalinfo failed - unable to open '/vsigs/bucket_name/subfolder/image.tif'.
Then I tried:
!gdalinfo /vsicurl/https://storage.cloud.google.com/bucket_name/subfolder/image.tif
which I would get 1 random error out of 2:
ERROR 1: Line 1255: </head> doesn't have matching <head>. gdalinfo failed - unable to open '/vsicurl/https://storage.cloud.google.com/bucket_name/subfolder/image.tif'
or:
ERROR 3: Cannot read 74247 bytes gdalinfo failed - unable to open '/vsicurl/https://storage.cloud.google.com/bucket_name/subfolder/image.tif'
I have also tried:
!gdalinfo --config CPL_VSIL_CURL_USE_HEAD FALSE /vsicurl/https://storage.cloud.google.com/bucket_name/subfolder/image.tif
and I would get:
ERROR 4: '/vsicurl/https://storage.cloud.google.com/bucket_name/subfolder/image.tif' not recognized as a supported file format. gdalinfo failed - unable to open '/vsicurl/https://storage.cloud.google.com/bucket_name/subfolder/image.tif'.
I am new to gdal and python, I need help. Thanks.
The text was updated successfully, but these errors were encountered: