Feature request #12187
GeoPackage: Vector layer save as... support
Status: | Closed | ||
---|---|---|---|
Priority: | Normal | ||
Assignee: | - | ||
Category: | Data Provider | ||
Pull Request or Patch supplied: | No | Resolution: | fixed/implemented |
Easy fix?: | No | Copied to github as #: | 20377 |
Description
OGR supports reading and writing of GeoPackage vector format.
QGIS supports GeoPackage reading/importing (besides Drag&Drop, see #10228).
But GeoPackage writing, meaning "Vectorlayer save as..." is missing.
This would enhance chances to finally get a common "Shapefile of the future..." :-).
Related issues
History
#1
Updated by Sfkeller - over 9 years ago
Sorry:
Title should be "GeoPackage: Vectorlayer save as... support".
And it's a feature request, not a bug.
#2
Updated by Jürgen Fischer over 9 years ago
- Tracker changed from Bug report to Feature request
- Subject changed from GeoPackage: to GeoPackage: Vector layer save as... support
#3
Updated by Sfkeller - about 9 years ago
Can somebody explain, if there is a problem when GeoPackage is being added as writable driver?
I'm not sure but it seems that it's mainly inserting following snippet to "core/qgsvectorfilewriter.cpp", specifially "QgsVectorFileWriter::driverMetadata", after line 2272:
else if ( driverName.startsWith( "GeoPackage" ) )
{
longName = "GeoPackage";
trLongName = QObject::tr( "GeoPackage" );
glob = "*.gpkg";
ext = "gpkg";
}
#4
Updated by Jürgen Fischer about 9 years ago
Sfkeller - wrote:
Can somebody explain, if there is a problem when GeoPackage is being added as writable driver?
The only problem I see is that you cannot save multiple layers into one file using "Save as...". But that also already applies to SQLite/SpatiaLite.
#5
Updated by Andreas Neumann about 9 years ago
If we could add support for geopackage in the DB manager, then we could add additional layers into one Geopackage - but that is something for QGIS 2.12 ...
#6
Updated by Giovanni Manghi about 9 years ago
- Status changed from Open to Closed
- Resolution set to fixed/implemented
#7
Updated by Giovanni Manghi about 9 years ago
Andreas Neumann wrote:
If we could add support for geopackage in the DB manager, then we could add additional layers into one Geopackage - but that is something for QGIS 2.12 ...
feature request added #12897