Skip to content
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

Allow setting VSI credentials when loading OGR/GDAL layers (Request in QGIS) #9147

Closed
qgis-bot opened this issue Jun 24, 2024 · 0 comments · Fixed by #9315
Closed

Allow setting VSI credentials when loading OGR/GDAL layers (Request in QGIS) #9147

qgis-bot opened this issue Jun 24, 2024 · 0 comments · Fixed by #9315
Labels
3.40 Managing Layer/Data Creating and loading layers as well as formats handling or specifics
Milestone

Comments

@qgis-bot
Copy link
Collaborator

Request for documentation

From pull request qgis/QGIS#57826
Author: @nyalldawson
QGIS version: 3.40

Allow setting VSI credentials when loading OGR/GDAL layers

PR Description:

This PR exposes the VSI credential options for user control when adding OGR vector/GDAL raster layers from the Data Source Manager, eg:

image

The underlying provider changes were discussed in qgis/QGIS#57801. When credential options are found in a layer's URI, we use GDAL's VSISetPathSpecificOption to set the credential option for that VSI driver and bucket.

This allows per-vsi driver & bucket credentials for layers, whereas other approaches (like environment variable setting) force a single set of credentials to be used for an entire QGIS session. (And are difficult for users to set)

I've also taken the opportunity to cleanup a bunch of code relating to how VSI protocols are exposed in GUI, and how GUIs for GDAL configuration options are dynamically created.

Requires GDAL 3.5+

Commits tagged with [need-docs] or [FEATURE]

@github-actions github-actions bot added the 3.40 label Jun 24, 2024
@github-actions github-actions bot added this to the QGIS 3.40 milestone Jun 24, 2024
@selmaVH1 selmaVH1 added the Managing Layer/Data Creating and loading layers as well as formats handling or specifics label Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.40 Managing Layer/Data Creating and loading layers as well as formats handling or specifics
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants