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

Use GDAL settings in "Settings > options" for the Processing tools #40235

Closed
nicogodet opened this issue Nov 23, 2020 · 7 comments
Closed

Use GDAL settings in "Settings > options" for the Processing tools #40235

nicogodet opened this issue Nov 23, 2020 · 7 comments
Assignees
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Processing Relating to QGIS Processing framework or individual Processing algorithms

Comments

@nicogodet
Copy link
Member

Describe the bug

GDAL algs dialog don't load default Create Options defined in GDAL settings

GDAL Settings:
image

"Save raster layer as" dialog
image
Everything's fine.

"Clip raster by mask layer" dialog
image
Erg empty create options ! Not fine !
I took this algs as example but similar issue on every gdal algs dialog.

QGIS and OS versions

Tested on a fresh new profile
Win 10 OSGeo4W Qgis 3.16.1

@nicogodet nicogodet added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Nov 23, 2020
@gioman gioman added Feature Request and removed Bug Either a bug report, or a bug fix. Let's hope for the latter! labels Nov 23, 2020
@gioman gioman changed the title GDAL algorithm dialog don't load default creation options Use GDAL settings in "Settings > options" for the Processing tools Nov 23, 2020
@gioman
Copy link
Contributor

gioman commented Nov 23, 2020

That set of options is not part of the Processing ones (at the bottom of "settings > options"), but it is still a good idea. Setting this as feature request.

@nicogodet
Copy link
Member Author

By the way, it could be nice to have those options in every algs involving raster creation.

@DelazJ
Copy link
Contributor

DelazJ commented Nov 24, 2020

That set of options is not part of the Processing ones (at the bottom of "settings > options"), but it is still a good idea. Setting this as feature request.

@gioman, maybe do I misunderstand you but it's the so-called default profile that does not populate the widgets. Other profiles do. Looks more like a bug to me.
image

@nicogodet
Copy link
Member Author

nicogodet commented Nov 24, 2020

It seems that the profil selected in Settings / GDAL as default profile does not populate GDAL algs.
image
image

If I switch profil, it's ok.
image

If I switch back, not ok.
image

Steps to reproduce :

  1. Go to Settings / GDAL
  2. Create a new creation option profile (ex : test40235)
  3. Close Creation Options - GTiff driver with the new profile set in Profile combobox
  4. Open a GDAL alg
  5. In advanced param, the selected profile is the one selected in GTiff driver dialog (step 3)
    The number of rows is correct even if they are empty.
  6. Change profiles, it populates the table.
  7. Select "test40235", it create an empty table. In opposite to 5., their is no rows this time.

So it's not a feature, it's a bug.

@gioman
Copy link
Contributor

gioman commented Nov 24, 2020

@gioman, maybe do I misunderstand you but it's the so-called default profile that does not populate the widgets. Other profiles do. Looks more like a bug to me.

@DelazJ sorry it was me that had misunderstood the report.

@gioman gioman added Bug Either a bug report, or a bug fix. Let's hope for the latter! Processing Relating to QGIS Processing framework or individual Processing algorithms and removed Feature Request labels Nov 24, 2020
@alexbruy
Copy link
Contributor

I'm pretty sure it was already reported, just can't find the ticket.

@nyalldawson nyalldawson self-assigned this Feb 8, 2021
nyalldawson added a commit to nyalldawson/QGIS that referenced this issue Feb 9, 2021
the definition of one of the stored GDAL profiles

Fixes qgis#41378
Fixes qgis#40235
nyalldawson added a commit to nyalldawson/QGIS that referenced this issue Feb 19, 2021
the definition of one of the stored GDAL profiles

Fixes qgis#41378
Fixes qgis#40235

(cherry picked from commit 7454a0e)
nyalldawson added a commit that referenced this issue Feb 19, 2021
the definition of one of the stored GDAL profiles

Fixes #41378
Fixes #40235

(cherry picked from commit 7454a0e)
@nicogodet
Copy link
Member Author

nicogodet commented Mar 15, 2021

@nyalldawson I'm a bit lost... Do you agree this should be fixed on 3.18 bdef9fb ?

EDIT : Oh ok, by default it's set to no profile...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Processing Relating to QGIS Processing framework or individual Processing algorithms
Projects
None yet
Development

No branches or pull requests

5 participants