Feature request #10222

Geopackage support: add layer through Browser

Added by Paolo Cavallini about 5 years ago. Updated almost 4 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Browser
Pull Request or Patch supplied:No Resolution:fixed/implemented
Easy fix?:No

Description

With GDAL 1.11 we got gpkg support for free. However, layers can be added only through "Add vector" dialog.
Please add support in the Browser.

History

#1 Updated by Etienne Tourigny about 5 years ago

That isn't as simple as it seems, as there is no such functionality in the ogr provider.

Perhaps that and the spatialite layers should be handled in the same way via the ogr provider? There could be a new GDAL/OGR top menu item, perhaps with a submenu for each of gdal/ogr supported data source types that are not simple files (such as spatialite, geopackage, mysql, psql, etc.).

#2 Updated by Paolo Cavallini about 5 years ago

Perhaps cloning the spatialite entry?

#3 Updated by Etienne Tourigny about 5 years ago

the spatialite data items use the spatialite provider (AFAIK) not the gdal provider. Wouldn't it be better to do something which could be generic and useful for other formats? Something like the add vector dialog, that has many database types. Something like a base class and several instances which open the specific settings dialog.

#4 Updated by Paolo Cavallini about 5 years ago

  • Subject changed from Gaeopackage support: add layer through Browser to Geopackage support: add layer through Browser

#5 Updated by Etienne Tourigny about 5 years ago

Oh I think I understand what you mean - you add support for geopackage files when browsing the directory tree right? I thought you meant to add them as permanent connections in the bottom of the browser, like spatialite and other Database connections.

#6 Updated by Etienne Tourigny about 5 years ago

  • Status changed from Open to In Progress
  • % Done changed from 0 to 50

fixed in master. You can now browse and open .gpk files. Setting as 50% done as it would be nice to add persistent entries as per spatialite.

#7 Updated by Paolo Cavallini about 5 years ago

See also #10228

#8 Updated by Sfkeller - over 4 years ago

Are you aware, that there's also a "Vectorlayer save as..." missing for GeoPackage format?
This would enhance chances to finally get a common "Shapefile of the future..." :-).
Or should this become a separate issue (feature request)?

#9 Updated by Paolo Cavallini over 4 years ago

Yes, please, one feature (or bug)==one ticket.

#10 Updated by Giovanni Manghi almost 4 years ago

  • Resolution set to fixed/implemented
  • Status changed from In Progress to Closed

Etienne Tourigny wrote:

Setting as 50% done as it would be nice to add persistent entries as per spatialite.

I think that this is covered by #10228 and #12897

Also available in: Atom PDF