qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.65k stars 3.01k forks source link

Add "Add Geopackage Layer" in Menu --> Layer --> Add Layer #51534

Open MarcoSpaziani opened 1 year ago

MarcoSpaziani commented 1 year ago

Feature description

The "Add Geopackage Layer" command is missing from the command list of the drop down menu available at "Menu --> Layer --> Add Layer"

Additional context

No response

Jehan-h20220012 commented 1 year ago

Can I work on this issue? It will help me in my acedamics too

agiudiceandrea commented 1 year ago

@Jehan-h20220012 yes, of course. Please see https://github.com/qgis/QGIS#get-involved-with-the-community, https://qgis.org/en/site/getinvolved/development/index.html, and https://docs.qgis.org/3.22/en/docs/developers_guide/index.html. Please notify here when you have submitted a Pull Request fixing this feature request.

rouault commented 1 year ago

I don't see the point in cluttering the UI for that. This is already covered by "Add a vector layer". We should rather try to reduce the number of entries in this menu

agiudiceandrea commented 1 year ago

This is already covered by "Add a vector layer"

It is not the same dialog.

The "Add a vector layer" opens the "Vector" Data Source Manager dialog: image

while the missing "Add a GeoPackage layer" should open the Data Source Manager dialog that allows to also add a GeoPackage connection: image

I think this is actually a bug, since currently there is an inconsistency between the items listed in the the "Layer -> Add Layer" menu and the items in the Data Source Manager. Other then the GeoPackage one, only the "GPS" and Geonode (which will be removed since 3.30) items are also missing.

nyalldawson commented 1 year ago

I'm not super-keen on exposing this via the menu either -- to me it would mislead new users into thinking that it's the "correct"/"only" way to add Geopackages to their projects, when it's actually a more complex/less helpful way because it requires them to manually create a persistent connection to the file.

I'd rather they just went via the Add Vector Layer option instead, as it's much simpler to use...

agiudiceandrea commented 1 year ago

The "Add Spatialite layer" item, currently in the Add Layer menu, is similar to the missing "Add GeoPackage layer" as both layer types can be added using the "Add vector layer" item.